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 55526a790b A
Former-commit-id: 62780b87b6f47a83ba0d30fae47da74fc90591c2 [formerly 45d73e47233a1764a819f3f8505897f344457e6f] [formerly 197b98df2c948ec9d1dfd8641f4f451b616ccad1 [formerly f1f72fc74297d8b1e8faa0825a57acff7397277f [formerly 88cce8cfa2]]]
Former-commit-id: 459a89576d2c2960983a2625a5dcb2e281d54481 [formerly f7cac3759d78a16a3941452651998f7d65b8a0c8]
Former-commit-id: 6765446033e3cf8e350988b79aa3f8f3c6e230ab
Former-commit-id: bbec2ac85c
2016-02-07 16:28:02 +00:00

26 lines
696 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.com;
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";
}
}