Answer the question
In order to leave comments, you need to log in
How to configure proxy_pass here?
Good day. I set up VNC in the browser, I can’t open the vnc.html page automatically
Opens instead the folder with noVNC files, I have to manually poke on vnc.html to open the
noVNC password request - it’s local,
nginx port 5998 as a reverse proxy in front of it Here is the config
#VNC
server {
listen 443 ssl http2;
server_name vnc.domain.ru;
client_max_body_size 10G;
ssl_certificate /etc/letsencrypt/live/domain.ru-0001/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.ru-0001/privkey.pem;
location / {
proxy_pass http://127.0.0.1:5998/;
}
location /websockify {
proxy_pass http://127.0.0.1:5998/websockify;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question