recommended nginx settings
This commit is contained in:
parent
8e30de4995
commit
d10be85bf3
2 changed files with 5 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ in {
|
|||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
virtualHosts = {
|
||||
"*.tristans.cloud" = {
|
||||
globalRedirect = "tristans.cloud";
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ in {
|
|||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://localhost:${toString cfg.settings.server.http_port}";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue