Skip to content

Instantly share code, notes, and snippets.

@rohityadavcloud
Created September 4, 2022 08:50
Show Gist options
  • Save rohityadavcloud/7b46854741a3f2a8ebaa5673a869aac2 to your computer and use it in GitHub Desktop.
Save rohityadavcloud/7b46854741a3f2a8ebaa5673a869aac2 to your computer and use it in GitHub Desktop.
cloudstack-console-websockets-proxy
# the following can be used to have nginx-proxy/ssl termination on port 8080 for console proxy domain
listen 8080 ssl http2;
location /websockify {
proxy_pass http://192.168.1.42:8080/websockify;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache_bypass $http_upgrade;
proxy_buffering off;
proxy_ignore_client_abort off;
proxy_read_timeout 86400;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment