Created
July 10, 2015 21:06
-
-
Save baltpeter/3daf2469f972402b07ac to your computer and use it in GitHub Desktop.
Proxmox Reverse Proxy with Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To prevent hangup of screen on novnc i suggest to add :
client_max_body_size 10240M;
client_body_buffer_size 4m;
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
proxy_cache off;