cleaning and refactoring alisceon-core
This commit is contained in:
parent
6c60161d1a
commit
e2b41c8129
4 changed files with 194 additions and 164 deletions
17
nixos/modules/services/nginx.nix
Normal file
17
nixos/modules/services/nginx.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
virtualHosts."_" = {
|
||||
default = true;
|
||||
rejectSSL = true;
|
||||
extraConfig = ''
|
||||
return 421;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue