From e87b976dfb2667a8f4bc55a596a35eda65979014 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 12 Feb 2025 22:37:37 +0100 Subject: Move tailnet internal sites to their own rnrd.fyi subdomains Signed-off-by: Mel --- services/shiori.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'services/shiori.nix') diff --git a/services/shiori.nix b/services/shiori.nix index cddefca..c580577 100644 --- a/services/shiori.nix +++ b/services/shiori.nix @@ -39,7 +39,6 @@ in ]; environment = { - SHIORI_HTTP_ROOT_PATH = "/shiori/"; SHIORI_DIR = "/shiori"; }; @@ -47,12 +46,10 @@ in cmd = [ "server" ]; }; - services.nginx.virtualHosts.tailnet.locations = { - "/shiori" = { - return = "301 $scheme://$host$request_uri/"; - }; - - "/shiori/" = { + services.nginx.virtualHosts."shiori.rnrd.fyi" = { + useACMEHost = "rnrd.fyi"; + forceSSL = true; + locations."/" = { proxyPass = "http://127.0.0.1:${toString shioriLocalPort}/"; }; }; -- cgit 1.4.1