1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/install/awwkoala.nginx
Zack 098b814897 Reloads page after 4 seconds of no websocket connection Issue #21
Former-commit-id: d6596865b03100e14ede53fea43cb21065f84ceb [formerly 34c11b504302a7179385580aa3b8dea2b713f2e6] [formerly c99631cc0ec8a8b124157225656a9d670b7b87e7 [formerly 08654633199825bdfc6e5dd39198e6af4b74c9f6 [formerly 848a4f27bd]]]
Former-commit-id: ffd18222cefd54da1f4565913f1f4a06567f1e30 [formerly 2245118495b9f15f6dae8068d1bfdad6f1e7f320]
Former-commit-id: 2c2762cff7df2530c979b61db77683ba951f793c
Former-commit-id: aaebcc5add
2016-02-11 09:05:49 -05:00

42 lines
994 B
Nginx Configuration File

server {
# SERVER BLOCK FOR awwkoala
listen 80; ## listen for ipv4; this line is default and implied
access_log /etc/nginx/logs/access-awwkoala.log;
error_log /etc/nginx/logs/error-awwkoala.log info;
root CUR_DIR;
server_name ADDRESS;
# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
# CSS and Javascript
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
location ^~ /static {
try_files $uri $uri/ =404;
}
location ~ ^/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:PORT;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}