fix: routes

This commit is contained in:
Moritz Böhme 2025-05-14 15:46:40 +02:00
parent 2c187cbe63
commit 00b702052c
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9

View file

@ -54,19 +54,11 @@
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"moritzboeh.me" = {
serverAliases = ["*.moritzboeh.me"];
".moritzboeh.me" = {
locations."/" = {
proxyPass = "http://192.168.0.6";
};
};
"moritz.foo" = {
forceSSL = true;
useACMEHost = "moritz.foo";
locations."/" = {
return = "301 https://www.moritz.foo";
};
};
"www.moritz.foo" = {
forceSSL = true;
useACMEHost = "any.moritz.foo";
@ -77,6 +69,21 @@
return = "200 '<html><body>Hello World</body></html>'";
};
};
"moritz.foo" = {
forceSSL = true;
useACMEHost = "moritz.foo";
locations."/" = {
return = "301 https://www.moritz.foo";
};
};
"_" = {
forceSSL = true;
default = true;
useACMEHost = "any.moritz.foo";
locations."/" = {
return = "404 'Not found!'";
};
};
};
streamConfig = ''
upstream diskstation {