From bf4cc39971f094eceb6ab3b190887ad0de7458ac Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 21 Jul 2024 17:41:03 +0200 Subject: r2wars parking page --- nix/hosts/corrino/www/r2wa.rs.nix | 16 ++++++++++++++++ nix/hosts/corrino/www/tmp.emile.space.nix | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 nix/hosts/corrino/www/r2wa.rs.nix create mode 100644 nix/hosts/corrino/www/tmp.emile.space.nix 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; + ''; + }; + }; + }; +} -- cgit 1.4.1