mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-22 06:13:49 -07:00
Fix for connecting to container Cline
W/out these 2 lines you'll get the following error (or similar) while trying to connect to a container in portainer's web ui: > WebSocket connection to 'wss://<domain>/portainer/api/websocket/exec?token=<token>=6&id=<id>&nodeName=docker-desktop' failed: Error during WebSocket handshake: Unexpected response code: 400
This commit is contained in:
parent
388a3a7e7f
commit
8f8d95670f
1 changed files with 2 additions and 0 deletions
|
@ -36,5 +36,7 @@ location ^~ /portainer/api/websocket/ {
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||||
|
|
||||||
rewrite /portainer(.*) $1 break;
|
rewrite /portainer(.*) $1 break;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
proxy_hide_header X-Frame-Options; # Possibly not needed after Portainer 1.20.0
|
proxy_hide_header X-Frame-Options; # Possibly not needed after Portainer 1.20.0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue