D
D
Drno2022-02-19 20:31:45
Nginx
Drno, 2022-02-19 20:31:45

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;
    }


I want the vnc.html file to open immediately upon request vnc.domain.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2022-02-19
@Drno

index vnc.html;
index

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question