diff options
| -rw-r--r-- | conf/nginx.conf | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..bbab6f0 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,46 @@ +user www-data; +worker_processes 5; + +error_log /var/log/nginx/error.log; +pid /var/run/nginx.pid; + +events { + worker_connections 1024; + # multi_accept on; +} + +http { + include /etc/nginx/mime.types; + + access_log /var/log/nginx/access.log; + + sendfile on; + #tcp_nopush on; + + #keepalive_timeout 0; + keepalive_timeout 65; + tcp_nodelay on; + + gzip on; + gzip_disable "MSIE [1-6]\.(?!.*SV1)"; + + include /etc/nginx/conf.d/*.conf; + + server { + listen 80; + + location ^~* ^/(avatars|images)/ { + root /home/ubuntu/dumpfm; + expires 30d; + } + + location ^~* ^/static/ { + root /home/ubuntu/dumpfm; + expires 30m; + } + + location / { + proxy_pass http://127.0.0.1:8080; + } + } +} |
