sputnik fixing lets encrypt fixes

This commit is contained in:
Ingolf Wagner 2021-03-05 17:45:54 +01:00
parent a94e8afe34
commit 58df27cc3a
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -195,33 +195,33 @@ in {
} // error.locations; } // error.locations;
}; };
"chat.ingolf-wagner.de" = { #"chat.ingolf-wagner.de" = {
listen = [ # listen = [
{ # {
addr = "0.0.0.0"; # addr = "0.0.0.0";
port = 4443; # port = 4443;
ssl = true; # ssl = true;
} # }
{ # {
addr = "0.0.0.0"; # addr = "0.0.0.0";
port = 80; # port = 80;
ssl = false; # ssl = false;
} # }
]; # ];
forceSSL = true; # forceSSL = true;
enableACME = true; # enableACME = true;
extraConfig = error.extraConfig; # extraConfig = error.extraConfig;
locations = { # locations = {
"/" = { # "/" = {
proxyPass = "http://chat.workhorse.private"; # proxyPass = "http://chat.workhorse.private";
proxyWebsockets = true; # proxyWebsockets = true;
extraConfig = '' # extraConfig = ''
sub_filter "http://chat.ingolf-wagner.de" "https://chat.ingolf-wagner.de"; # sub_filter "http://chat.ingolf-wagner.de" "https://chat.ingolf-wagner.de";
sub_filter "chat.workhorse.private" "chat.ingolf-wagner.de"; # sub_filter "chat.workhorse.private" "chat.ingolf-wagner.de";
''; # '';
}; # };
} // error.locations; # } // error.locations;
}; #};
"nextcloud.ingolf-wagner.de" = { "nextcloud.ingolf-wagner.de" = {
listen = [ listen = [