1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 23:55:24 +00:00

Update README.md

This commit is contained in:
savichev 2015-10-29 13:19:10 +05:00
parent 2a3a33d746
commit bb5e5815c0

View file

@ -125,6 +125,10 @@ You will need to edit the main nginx.conf file as the one that comes from the rp
Also make sure file in **/etc/nginx/conf.d/webvirtcloud.conf** has the proper paths: Also make sure file in **/etc/nginx/conf.d/webvirtcloud.conf** has the proper paths:
``` ```
upstream gunicorn_server {
#server unix:/srv/webvirtcloud/venv/wvcloud.socket fail_timeout=0;
server 127.0.0.1:8000 fail_timeout=0;
}
server { server {
listen 80; listen 80;
@ -137,7 +141,7 @@ server {
} }
location / { location / {
proxy_pass http://127.0.0.1:8000; proxy_pass http://gunicorn_server;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
proxy_set_header Host $host:$server_port; proxy_set_header Host $host:$server_port;