diff options
author | Emile <git@emile.space> | 2024-07-21 17:41:03 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-07-21 17:41:03 +0200 |
commit | bf4cc39971f094eceb6ab3b190887ad0de7458ac (patch) | |
tree | 5dc34b7ec78eb7434e349d89f34441e5320bf4cd | |
parent | b1140ee81828a97a3bdcb098ae88c5ad33c2e93e (diff) |
r2wars parking page
-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; + ''; + }; + }; + }; +} |