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;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"moritzboeh.me" = {
|
".moritzboeh.me" = {
|
||||||
serverAliases = ["*.moritzboeh.me"];
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://192.168.0.6";
|
proxyPass = "http://192.168.0.6";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"moritz.foo" = {
|
|
||||||
forceSSL = true;
|
|
||||||
useACMEHost = "moritz.foo";
|
|
||||||
locations."/" = {
|
|
||||||
return = "301 https://www.moritz.foo";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"www.moritz.foo" = {
|
"www.moritz.foo" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
useACMEHost = "any.moritz.foo";
|
useACMEHost = "any.moritz.foo";
|
||||||
|
|
@ -77,6 +69,21 @@
|
||||||
return = "200 '<html><body>Hello World</body></html>'";
|
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 = ''
|
streamConfig = ''
|
||||||
upstream diskstation {
|
upstream diskstation {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue