spec(eientei): migrate library configuration

This commit is contained in:
514fpv 2024-02-02 04:39:50 +08:00
parent b2fb07b698
commit 2bfec2508d
Signed by: koishi
SSH key fingerprint: SHA256:652+A2yCgByK6j4+urGiApE+tZbISyelwTnr76Tm+x8
10 changed files with 52 additions and 103 deletions

View file

@ -1,37 +0,0 @@
{
services.nginx = {
enable = true;
# enable all recommended settings
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
# set a reasonable default
clientMaxBodySize = "64m";
# proxy services running on TrueNAS
virtualHosts = {
"_" = {
addSSL = true;
useACMEHost = ".514fpv.io";
extraConfig = "return 444;";
};
"home.514fpv.io" = {
useACMEHost = ".514fpv.io";
addSSL = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://192.168.1.250:8123";
proxyWebsockets = true;
};
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
}