recommended nginx settings

This commit is contained in:
Tristan 2024-02-18 16:11:07 +00:00
parent 8e30de4995
commit d10be85bf3
2 changed files with 5 additions and 0 deletions

View file

@ -133,6 +133,10 @@ in {
services.nginx = { services.nginx = {
enable = true; enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
virtualHosts = { virtualHosts = {
"*.tristans.cloud" = { "*.tristans.cloud" = {
globalRedirect = "tristans.cloud"; globalRedirect = "tristans.cloud";

View file

@ -32,6 +32,7 @@ in {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyWebsockets = true;
proxyPass = "http://localhost:${toString cfg.settings.server.http_port}"; proxyPass = "http://localhost:${toString cfg.settings.server.http_port}";
}; };
}; };