Recommended nginx settings
This commit is contained in:
parent
8c2a444b44
commit
7ee6d7c77d
3 changed files with 11 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
# Supporting
|
# Supporting
|
||||||
./buckets.nix
|
./buckets.nix
|
||||||
|
./nginx.nix
|
||||||
./mailu.nix
|
./mailu.nix
|
||||||
# Services
|
# Services
|
||||||
./suite.nix
|
./suite.nix
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ in {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "https://localhost:8081";
|
proxyPass = "https://localhost:8081";
|
||||||
recommendedProxySettings = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
10
hosts/sesame/nginx.nix
Normal file
10
hosts/sesame/nginx.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.nginx = {
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedTlsSettings = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue