refactor(eientei): move hass nginx configuration

This commit is contained in:
514fpv 2024-02-18 18:41:27 +08:00
parent adc27a77ca
commit 37c19421d9
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 13 additions and 13 deletions

View file

@ -19,7 +19,19 @@
];
};
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
services.nginx.virtualHosts."home.514fpv.io" = {
useACMEHost = ".514fpv.io";
addSSL = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:8123";
proxyWebsockets = true;
};
};
global.fs.zfs.mountpoints."/nix/persist/service/hass" = "service/hass";
nixpkgs.config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
}

View file

@ -17,18 +17,6 @@
useACMEHost = ".514fpv.io";
extraConfig = "return 444;";
};
"home.514fpv.io" = {
useACMEHost = ".514fpv.io";
addSSL = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:8123";
proxyWebsockets = true;
};
};
};
};