parsons: config nginx

This commit is contained in:
schweby 2021-08-07 21:24:59 +02:00 committed by hexchen
parent a5063ae960
commit f5579bc98e
2 changed files with 16 additions and 2 deletions

View file

@ -77,6 +77,7 @@ in {
services.nginx.appendHttpConfig = ''
access_log off;
add_header Permissions-Policy "interest-cohort=()";
'';
networking.nftables.enable = true;

View file

@ -43,8 +43,21 @@
interface = "enp35s0";
};
services.nginx.enable = true;
services.nginx.recommendedProxySettings = true;
services.nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"parsons.hacc.space" = {
default = true;
locations."/".return = "404";
};
"hacc.space" = {
enableACME = true;
forceSSL = true;
locations."/".return = "302 https://hacc.earth";
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.restic.backups.tardis = {