--- Revision None +++ Revision 316335323038 @@ -0,0 +1,36 @@ +# cat /etc/nginx/nginx.conf +# timelines-config +worker_processes 1; +user www-data www-data; +pid /var/run/nginx.pid; + +events { + worker_connections 1024; +} + +http { + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; + include mime.types; + default_type application/octet-stream; + sendfile on; + tcp_nopush on; + keepalive_timeout 65; + gzip on; + gzip_comp_level 2; + gzip_buffers 16 8k; + gzip_disable "MSIE [1-6]\."; + gzip_proxied any; + gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; + + server { + listen 80; + location / { + proxy_pass http://localhost:5984; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + } +}