GitHub user dR3b added a comment to the discussion: Nginx or Apache as a 
reverse proxy in front of CloudStack (including VNC console support)

Yes i think so:
```
server {
        listen 80;
        listen [::]:80;

        server_name x.y.z;

        access_log      /var/log/nginx/cloudstack-http.access.log;
        error_log       /var/log/nginx/cloudstack-http.error.log;

        return 301 https://$host$request_uri;
}

server {
        listen  443 ssl;
        listen  [::]:443 ssl;

        server_name x.y.z;

        access_log      /var/log/nginx/cloudstack-https.access.log;
        error_log       /var/log/nginx/cloudstack-https.error.log;

        ssl_certificate         /etc/nginx/ssl/nginx.crt;
        ssl_certificate_key     /etc/nginx/ssl/nginx.key;

        location / {
                proxy_pass            http://localhost:8080;
                proxy_read_timeout    90s;
                proxy_connect_timeout 90s;
                proxy_send_timeout    90s;
                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_set_header      Proxy "";
        }
        location /websockify {
                proxy_pass              http://localhost:8080/websockify;
                proxy_http_version      1.1;
                proxy_set_header        Upgrade $http_upgrade;
                proxy_set_header        Connection "Upgrade";
                proxy_set_header        Host $host;
                proxy_read_timeout      600s;
                proxy_buffering         off;
        }
}
```

GitHub link: 
https://github.com/apache/cloudstack/discussions/11562#discussioncomment-14304754

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to