2015-03-27 14:20:30 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
2015-06-27 12:56:37 +00:00
|
|
|
#server_name webvirtcloud.example.com;
|
2015-03-27 14:20:30 +00:00
|
|
|
#access_log /var/log/nginx/webvirtcloud-access_log;
|
|
|
|
|
|
|
|
location /static/ {
|
2015-06-16 05:49:30 +00:00
|
|
|
root /srv/webvirtcloud;
|
2015-03-27 14:20:30 +00:00
|
|
|
expires max;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://127.0.0.1:8000;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host:$server_port;
|
2023-10-26 20:43:27 +00:00
|
|
|
proxy_set_header X-Forwarded-Proto http;
|
2020-06-26 13:31:41 +00:00
|
|
|
proxy_set_header X-Forwarded-Ssl off;
|
2020-11-06 11:30:41 +00:00
|
|
|
proxy_connect_timeout 1800;
|
|
|
|
proxy_read_timeout 1800;
|
|
|
|
proxy_send_timeout 1800;
|
2015-03-27 14:20:30 +00:00
|
|
|
client_max_body_size 1024M;
|
|
|
|
}
|
2020-06-26 13:31:41 +00:00
|
|
|
|
|
|
|
location /novncd/ {
|
|
|
|
proxy_pass http://wsnovncd;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2022-07-17 11:25:47 +00:00
|
|
|
location /socket.io/ {
|
|
|
|
proxy_pass http://wssocketiod;
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2023-10-19 01:42:57 +00:00
|
|
|
location /websockify {
|
2023-10-26 17:12:20 +00:00
|
|
|
proxy_pass http://wsnovncd;
|
2023-10-19 01:42:57 +00:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
2015-03-27 14:20:30 +00:00
|
|
|
}
|
2020-06-26 13:31:41 +00:00
|
|
|
|
|
|
|
upstream wsnovncd {
|
|
|
|
server 127.0.0.1:6080;
|
2022-07-17 11:25:47 +00:00
|
|
|
}
|
|
|
|
upstream wssocketiod {
|
|
|
|
server 127.0.0.1:6081;
|
|
|
|
}
|