$def with (pkg, identity, root_dir, src_dir, spec="")
charset utf-8;
add_header X-Powered-By "canopy";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
# add_header Strict-Transport-Security "max-age=15768000" always;
error_page 403 404 /error/40x.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
internal;
alias $src_dir/$pkg/$pkg/;
}
location /static/ {
add_header Access-Control-Allow-Origin *;
root $src_dir/$pkg/$pkg/__web__;
}
$:spec
location / {
uwsgi_param Host $$http_host;
uwsgi_param X-Real-IP $$remote_addr;
uwsgi_param X-Forwarded-For $$proxy_add_x_forwarded_for;
uwsgi_max_temp_file_size 0;
uwsgi_pass unix:$root_dir/run/web.sock;
include /home/gaea/detritus/nginx/conf/uwsgi_params;
}