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, ...}: {
|
{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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
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];
|
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;
|
||||||
|
|
Loading…
Reference in a new issue