Undo nginx and add sub-merge

This commit is contained in:
rasmus-kirk
2024-09-19 22:18:53 +02:00
parent 31484ce375
commit e44c6f61f8
10 changed files with 189 additions and 19 deletions
+22
View File
@@ -101,5 +101,27 @@ in {
}
];
};
services.nginx = mkIf cfg.vpn.enable {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
virtualHosts."127.0.0.1:${builtins.toString defaultPort}" = {
listen = [
{
addr = "0.0.0.0";
port = defaultPort;
}
];
locations."/" = {
recommendedProxySettings = true;
proxyWebsockets = true;
proxyPass = "http://192.168.15.1:${builtins.toString defaultPort}";
};
};
};
};
}