summaryrefslogtreecommitdiff
path: root/conf/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/nginx.conf')
-rw-r--r--conf/nginx.conf48
1 files changed, 48 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
new file mode 100644
index 0000000..1c176bc
--- /dev/null
+++ b/conf/nginx.conf
@@ -0,0 +1,48 @@
+user dumpfmprod;
+worker_processes 5;
+error_log /home/dumpfmprod/prod/log/nginx/error.log;
+pid /var/run/nginx.pid;
+
+events {
+ worker_connections 1024;
+ # multi_accept on;
+}
+
+http {
+ include /etc/nginx/mime.types;
+ access_log /home/dumpfmprod/prod/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;
+ server_name .dump.fm;
+
+ location ~* /(avatars|images)/ {
+ root /home/dumpfmprod/prod;
+ expires 30d;
+ }
+
+ location ~* /static/ {
+ root /home/dumpfmprod/prod;
+ expires 5m;
+ }
+
+ location / {
+ proxy_pass http://127.0.0.1:8080;
+ proxy_redirect off;
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ }
+ }
+}