1
0
Fork 0

Add nginx

This commit is contained in:
Malte Brandy 2021-12-05 07:16:08 +01:00
parent 6e8da8fd19
commit 50d30e9c1d

View file

@ -93,7 +93,7 @@ in
hostName = "fluffy";
domain = "lo.m-0.eu";
firewall = {
allowedTCPPorts = [ 21 ];
allowedTCPPorts = [ 21 80 ];
allowedTCPPortRanges = [{ from = 51000; to = 51999; }];
};
interfaces.enp1s0 = {
@ -137,6 +137,18 @@ in
}
];
services = {
nginx = {
enable = true;
virtualHosts = {
"home.lo.m-0.eu" = {
locations."/".proxyPass =
"http://[::1]:8123";
};
"fluffy.lo.m-0.eu" = {
locations."/".extraConfig = "return 301 http://home.lo.m-0.eu$request_uri;";
};
};
};
home-assistant = {
enable = true;
configDir = "/disk/persist/var/lib/hass";