Add proxy_set_header X-Scheme https;

The X-scheme header seems to be required for Octoprint to correctly use Websockets.
This commit is contained in:
Starker3 2021-09-05 12:44:05 +12:00 committed by GitHub
parent 7420ff6e3d
commit 616ca0a0b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
## Version 2021/06/16
## Version 2021/09/05
# make sure that your dns has a cname set for octoprint and that your octoprint container is not using a base url
server {
@ -35,6 +35,7 @@ server {
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header X-Scheme https;
}