From b80f581000bd20fe4f9fbbeb75312140a6a74868 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 19 Jan 2020 19:13:54 +1300 Subject: [PATCH] nginx: add travel.ingolf-wagner.de --- configs/sputnik/nginx.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/configs/sputnik/nginx.nix b/configs/sputnik/nginx.nix index 28ec936..19e4865 100644 --- a/configs/sputnik/nginx.nix +++ b/configs/sputnik/nginx.nix @@ -55,6 +55,31 @@ # }; #}; + "travel.ingolf-wagner.de" = { + listen = [ + { + addr = "0.0.0.0"; + port = 4443; + ssl = true; + } + { + addr = "0.0.0.0"; + port = 80; + ssl = false; + } + ]; + forceSSL = true; + enableACME = true; + locations."/" = { + root = "/srv/www/travel"; + extraConfig = '' + if (-d $request_filename) { + rewrite [^/]$ $scheme://$http_host$request_uri/ permanent; + } + ''; + }; + }; + "tech.ingolf-wagner.de" = { listen = [ {