global/security: set common nginx settings
This commit is contained in:
parent
caba8c11c1
commit
567358aeff
3 changed files with 8 additions and 14 deletions
|
@ -69,12 +69,5 @@
|
|||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
statusPage = true;
|
||||
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -70,13 +70,6 @@
|
|||
{
|
||||
enable = true;
|
||||
|
||||
statusPage = true;
|
||||
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
|
||||
virtualHosts = {
|
||||
"*.inx.moe" = ssl // {
|
||||
listen = lib.flatten
|
||||
|
|
|
@ -52,6 +52,14 @@ with lib;
|
|||
];
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
statusPage = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
|
||||
common = {
|
||||
nginx.ssl = { sslCertificate = config.secrets."inx.moe.pem"; sslCertificateKey = config.secrets."inx.moe.key"; forceSSL = true; };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue