diff options
| author | Mel <mel@rnrd.eu> | 2025-02-12 22:37:37 +0100 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-02-12 22:37:37 +0100 |
| commit | e87b976dfb2667a8f4bc55a596a35eda65979014 (patch) | |
| tree | f0e171a925fa975a7aa284d3a641a05eed08b30e /services/shiori.nix | |
| parent | 48b97675572cfb8897d36c1e3c1457c5fb9e1113 (diff) | |
| download | network-e87b976dfb2667a8f4bc55a596a35eda65979014.tar.zst network-e87b976dfb2667a8f4bc55a596a35eda65979014.zip | |
Move tailnet internal sites to their own rnrd.fyi subdomains
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'services/shiori.nix')
| -rw-r--r-- | services/shiori.nix | 11 |
1 files changed, 4 insertions, 7 deletions
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}/"; }; }; |
