diff options
Diffstat (limited to 'nix/hosts/corrino/www')
-rw-r--r-- | nix/hosts/corrino/www/r2wa.rs.nix | 16 | ||||
-rw-r--r-- | nix/hosts/corrino/www/tmp.emile.space.nix | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/nix/hosts/corrino/www/r2wa.rs.nix b/nix/hosts/corrino/www/r2wa.rs.nix new file mode 100644 index 0000000..f7a0a7e --- /dev/null +++ b/nix/hosts/corrino/www/r2wa.rs.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + services.nginx.virtualHosts."r2wa.rs" = { + forceSSL = true; + enableACME = true; + + # kTLS = true; + + locations = { + "/" = { + return = "301 http://emile.space/blog/2020/r2wars/"; + }; + }; + }; +} diff --git a/nix/hosts/corrino/www/tmp.emile.space.nix b/nix/hosts/corrino/www/tmp.emile.space.nix new file mode 100644 index 0000000..eeb7f8b --- /dev/null +++ b/nix/hosts/corrino/www/tmp.emile.space.nix @@ -0,0 +1,17 @@ +{ + services.nginx.virtualHosts."tmp.emile.space" = { + forceSSL = true; + enableACME = true; + serverName = "tmp.emile.space"; + + locations = { + "/" = { + root = "/var/www/tmp.emile.space"; + extraConfig = '' + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + autoindex on; + ''; + }; + }; + }; +} |