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, ...}: {
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."404.buffet.sh" = {
default = true;
useACMEHost = "buffet.sh";

View file

@ -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;

View file

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

View file

@ -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
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];
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."buffet.sh" = {
useACMEHost = "buffet.sh";
forceSSL = true;