Hello,
we are looking into running sunstone behind nginx. (SSH) Forwarding the requests to localhost:9869 works, but when I access sunstone via nginx, the window for VNC does not open.
Our nginx.conf looks like this:
#
# cdist maintained configuration - do not overwrite
#
server {
listen 443;
ssl on;
ssl_certificate /etc/nginx/ssl.crt;
ssl_certificate_key /etc/nginx/ssl.key;
# Compress everything [tm]
gzip on;
gzip_static on;
gzip_proxied any;
# Not for silly ie
gzip_disable "MSIE [1-6]\.";
gzip_http_version 1.0;
gzip_types text/plain text/xml text/css
text/comma-separated-values
text/javascript application/x-javascript
application/atom+xml;
root /usr/lib/one/sunstone/public/;
try_files $uri/index.html $uri.html $uri @sunstone;
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires 1y;
# Need to enable proxying in this location as well
try_files $uri @sunstone;
}
# Rails error pages
error_page 500 502 503 504 /500.html;
location @sunstone {
proxy_pass http://127.0.0.1:9869;
proxy_set_header Host $host;
proxy_set_header SERVER_NAME $server_name;
proxy_set_header SERVER_ADDR $server_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X_FORWARDED_SCHEME $scheme;
proxy_set_header X_FORWARDED_PROTO $scheme;
}
}
Anyone an idea what is missing for VNC support?