Fixed Nginx Config
This commit is contained in:
+4
-12
@@ -22,15 +22,6 @@ let
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# helper: no forceSSL (for internal/non-redirected hosts)
|
|
||||||
mkWsProxyNoSSL = port: {
|
|
||||||
enableACME = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://${upstream}:${toString port}";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
matrixConfig = ''
|
matrixConfig = ''
|
||||||
client_max_body_size 50M;
|
client_max_body_size 50M;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
@@ -82,6 +73,7 @@ in
|
|||||||
"fluffy.cyperpunk.de" = mkWsProxy 8012;
|
"fluffy.cyperpunk.de" = mkWsProxy 8012;
|
||||||
|
|
||||||
"www.cyperpunk.de" = {
|
"www.cyperpunk.de" = {
|
||||||
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
@@ -95,9 +87,9 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"calvin.cyperpunk.de" = mkWsProxyNoSSL 15006;
|
"calvin.cyperpunk.de" = mkWsProxy 15006;
|
||||||
"cinny.cyperpunk.de" = mkWsProxyNoSSL 8009;
|
"cinny.cyperpunk.de" = mkWsProxy 8009;
|
||||||
"element.cyperpunk.de" = mkWsProxyNoSSL 8010;
|
"element.cyperpunk.de" = mkWsProxy 8010;
|
||||||
|
|
||||||
"cyperpunk.de" = {
|
"cyperpunk.de" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user