refactor: move repeated nginx snippets into one file
All checks were successful
/ check (push) Successful in 2m44s
All checks were successful
/ check (push) Successful in 2m44s
This commit is contained in:
parent
e5b395a6cb
commit
2def5b10eb
6 changed files with 12 additions and 29 deletions
|
@ -1,12 +1,5 @@
|
|||
{website, ...}: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts."404.buffet.sh" = {
|
||||
default = true;
|
||||
useACMEHost = "buffet.sh";
|
||||
|
|
|
@ -15,13 +15,6 @@ in {
|
|||
};
|
||||
|
||||
nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts."bitwarden.buffet.sh" = {
|
||||
useACMEHost = "buffet.sh";
|
||||
forceSSL = true;
|
||||
|
|
|
@ -15,8 +15,9 @@
|
|||
./borg.nix
|
||||
./disk-config.nix
|
||||
./forgejo.nix
|
||||
./murmur.nix
|
||||
./msmtp.nix
|
||||
./murmur.nix
|
||||
./nginx.nix
|
||||
./upgrade.nix
|
||||
./website.nix
|
||||
|
||||
|
|
|
@ -73,13 +73,6 @@ in {
|
|||
};
|
||||
|
||||
nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts."buffets.kitchen" = {
|
||||
useACMEHost = "buffet.sh";
|
||||
forceSSL = true;
|
||||
|
|
10
hosts/ami/nginx.nix
Normal file
10
hosts/ami/nginx.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
};
|
||||
}
|
|
@ -2,13 +2,6 @@
|
|||
networking.firewall.allowedTCPPorts = [80 443];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts."buffet.sh" = {
|
||||
useACMEHost = "buffet.sh";
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Reference in a new issue