summary refs log tree commit diff
path: root/services/shiori.nix
diff options
context:
space:
mode:
Diffstat (limited to 'services/shiori.nix')
-rw-r--r--services/shiori.nix11
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}/";
     };
   };