From 616ca0a0b87317ad1b75607da7a75cfc1afa70df Mon Sep 17 00:00:00 2001 From: Starker3 Date: Sun, 5 Sep 2021 12:44:05 +1200 Subject: [PATCH] Add proxy_set_header X-Scheme https; The X-scheme header seems to be required for Octoprint to correctly use Websockets. --- octoprint.subdomain.conf.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/octoprint.subdomain.conf.sample b/octoprint.subdomain.conf.sample index 2862341..a8af85e 100644 --- a/octoprint.subdomain.conf.sample +++ b/octoprint.subdomain.conf.sample @@ -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; }