1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00
cowyo/install/cowyo.nginx
Zack Scholl a858ed2630 Added nginx block
Former-commit-id: c3ce055d7a0aaa85fe6293f792251b068b410f0c [formerly f8737d32ba111fd3093750b8bb38d34182e71fe5] [formerly 1adc5d10448179ad7939ed4920171566bf41e3c3 [formerly dbcb7a42c9]]
Former-commit-id: 105818f64f3cd6b9ea90100529e0aba31e062348 [formerly 3a1c24fa27d0bd9d1b70c99bb2d19e61a8146dc9]
Former-commit-id: 207d8df999799d9344382d7489bcc982d1fd1894
2016-02-06 08:52:11 -05:00

31 lines
776 B
Nginx Configuration File

server {
# SERVER BLOCK FOR cowyo
listen 80; ## listen for ipv4; this line is default and implied
access_log /etc/nginx/logs/access-cowyo.log;
error_log /etc/nginx/logs/error-cowyo.log info;
root /home/phi/Documents/cowyo;
server_name cowyo.duckdns.org cowyo.duckdns.org;
location ^~ /static/ {
try_files $uri index.html;
}
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:12312;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}