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:
J. Scott Elblein 2020-09-09 22:55:16 -05:00
commit f98243d805

View file

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