Skip to content

Instantly share code, notes, and snippets.

@baltpeter baltpeter/config
Created Jul 10, 2015

Embed
What would you like to do?
Proxmox Reverse Proxy with Nginx
server {
listen 443;
server_name pve.mydomain.com;
ssl on;
ssl_certificate /etc/nginx/ssl/ssl.crt;
ssl_certificate_key /etc/nginx/ssl/ssl.key;
proxy_redirect off;
location / {
proxy_set_header X-Forwarded-Proto https;
proxy_pass https://10.10.10.101:8006;
# Enable websockets for the noVNC console to work
proxy_http_version 1.1;
proxy_set_header Connection $http_connection;
proxy_set_header Origin http://$host;
proxy_set_header Upgrade $http_upgrade;
}
}
@Rudde

This comment has been minimized.

Copy link

Rudde commented Feb 22, 2016

If I want this to work on domain.com/subdir what would be my header parameter for the cookies to be proper?

@Omitted

This comment has been minimized.

Copy link

Omitted commented Mar 28, 2016

I want to do the same thing but haven't been able to figure out the correct settings. Any help would be appreciated!

@jannoke

This comment has been minimized.

Copy link

jannoke commented Apr 13, 2018

AFAIK you can't do this on subdomains anyways because proxmox cookies will get confused. It didn't even work if proxmox are on different ports (8006, 8007 for example). When logged into one proxmox, other session gets destroyed.

Also as of proxmox5 the noVNC proxying via nginx is broken. It works randomly on multiple connection retries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.