diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/nginx.conf | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/doc/nginx.conf b/doc/nginx.conf index e2e4e3c..f89a75f 100644 --- a/doc/nginx.conf +++ b/doc/nginx.conf @@ -1,9 +1,20 @@ + server { listen 80; listen [::]:80; - server_name piccast.memeschemes.com; + server_name piccast.memeschemes.com piccastapp.com www.piccastapp.com; + + access_log /var/log/nginx/piccast_access.log; + error_log /var/log/nginx/piccast_error.log; - access_log /var/log/nginx/access.log; + gzip on; + gzip_http_version 1.1; + gzip_min_length 1000; + gzip_vary on; + gzip_proxied expired no-cache no-store private auth; + gzip_types text/plain application/xml application/json; + gzip_disable "MSIE [1-6]\."; + gzip_disable "wget"; location / { # Fallthrough to django if file not found @@ -18,11 +29,11 @@ server { fastcgi_pass_header Authorization; fastcgi_intercept_errors off; if (!-f $request_filename) { - fastcgi_pass unix:/srv/http/piccast.memeschemes.com/django.sock; + fastcgi_pass unix:/srv/http/piccastapp.com/django.sock; break; } - root /srv/http/piccast.memeschemes.com/www; + root /srv/http/piccastapp.com/www; index index.html index.htm; } } |