aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2011-05-07 18:15:17 +0000
committerbnewbold <bnewbold@robocracy.org>2011-05-07 18:15:17 +0000
commit324a778b95f3c91e98e3610500ac04ac2ea07905 (patch)
tree4127e45e17f70efbf0036ca0b60a9dd82ea11f98 /doc
parentcf569b08c0bd923778e476dcae1bbdf93d824502 (diff)
downloadpiccast-324a778b95f3c91e98e3610500ac04ac2ea07905.zip
piccast-324a778b95f3c91e98e3610500ac04ac2ea07905.tar.gz
updated nginx config (gzip, logs)
Diffstat (limited to 'doc')
-rw-r--r--doc/nginx.conf19
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;
}
}