refactor: move repeated nginx snippets into one file #26

Merged
chef merged 2 commits from chef/refactor into main 2024-06-05 09:40:43 +00:00 AGit
6 changed files with 12 additions and 29 deletions
Showing only changes of commit 3a81cc0d84 - Show all commits

View file

@ -1,12 +1,5 @@
{website, ...}: { {website, ...}: {
services.nginx = { services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."404.buffet.sh" = { virtualHosts."404.buffet.sh" = {
default = true; default = true;
useACMEHost = "buffet.sh"; useACMEHost = "buffet.sh";

View file

@ -15,13 +15,6 @@ in {
}; };
nginx = { nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."bitwarden.buffet.sh" = { virtualHosts."bitwarden.buffet.sh" = {
useACMEHost = "buffet.sh"; useACMEHost = "buffet.sh";
forceSSL = true; forceSSL = true;

View file

@ -15,8 +15,9 @@
./borg.nix ./borg.nix
./disk-config.nix ./disk-config.nix
./forgejo.nix ./forgejo.nix
./murmur.nix
./msmtp.nix ./msmtp.nix
./murmur.nix
./nginx.nix
./upgrade.nix ./upgrade.nix
./website.nix ./website.nix

View file

@ -73,13 +73,6 @@ in {
}; };
nginx = { nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."buffets.kitchen" = { virtualHosts."buffets.kitchen" = {
useACMEHost = "buffet.sh"; useACMEHost = "buffet.sh";
forceSSL = true; forceSSL = true;

10
hosts/ami/nginx.nix Normal file
View file

@ -0,0 +1,10 @@
{
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
};
}

View file

@ -2,13 +2,6 @@
networking.firewall.allowedTCPPorts = [80 443]; networking.firewall.allowedTCPPorts = [80 443];
services.nginx = { services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."buffet.sh" = { virtualHosts."buffet.sh" = {
useACMEHost = "buffet.sh"; useACMEHost = "buffet.sh";
forceSSL = true; forceSSL = true;