fix: routes
This commit is contained in:
parent
2c187cbe63
commit
00b702052c
1 changed files with 16 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue