Hi all,
I have two docker container.
A vscode container and a nginx container that acts as a reverse proxy to add SSL to every websites running on various containers.
I would like to do the same with vscode but it seems that there are some problems with the websocket reverse proxy.
I have a rule like this:
upstream websocket {
server 192.168.1.2:8443;
}
server {
listen 8444 ssl;
server_name mydns
location / {
proxy_pass http://192.168.1.2:8443/; #YOUR Address and Port of HA
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Accept-Encoding gzip;
}
ssl_certificate /etc/letsencrypt/live/mydns/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mydns/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
but I get this error.
An unexpected error occurred that requires a reload of this page.
The workbench failed to connect to the server (Error: WebSocket close with status code 1006)
any help would be really appreciated.