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 = {
|
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";
|
||||||
|
|
|
||||||
|
|
@ -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}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue