Skip to content

Commit

Permalink
new conf file for prod (banan.kodapan.se)
Browse files Browse the repository at this point in the history
  • Loading branch information
staffanm committed Jul 15, 2018
1 parent 26d24ec commit b3a27b8
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tools/nginx-prod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
map_hash_max_size 65536;
map_hash_bucket_size 128;
server_names_hash_bucket_size 64;

map $uri $new {
include /home/staffan/wds/ferenda/tng.lagen.nu/data/dv/generated/uri.map;
}

map $http_accept $conneg_suffix {
default "";
"application/rdf+xml" "rdf";
"application/json" "json";
"application/n-triples" "nt";
"text/turtle" "ttl";
"application/xhtml+xml" "xhtml";
"application/pdf" "pdf";
}

server {
server_name ferendus.lagen.nu ferenda.lagen.nu;
root /home/staffan/wds/ferenda/tng.lagen.nu/data;
index index.html;
include /home/staffan/wds/ferenda/tools/nginx-lagen.nu-redirects.conf;
rewrite_log off;
charset utf-8;
charset_types text/html text/xml;
client_max_body_size 4m;
location @uwsgi {
uwsgi_pass unix:///tmp/ferenda.sock;
include /etc/nginx/uwsgi_params;
}
}

0 comments on commit b3a27b8

Please sign in to comment.