mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
Update portainer.subfolder.conf.sample
Without these 2 lines you cannot connect to a container via the web ui's cline. You'll get: > WebSocket connection to 'wss://<domain>/portainer/api/websocket/exec?token=xxx&nodeName=docker-desktop' failed: Error during WebSocket handshake: Unexpected response code: 400
This commit is contained in:
parent
5dfb668994
commit
f98243d805
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;
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue