[paperless] move inside vpn
change
commit 5ad076d9815152a5d85b210c7304c5043a89364a
author Alpha Chen <alpha@kejadlen.dev>
date
parent a0645ccb
diff --git a/lotus-land-story/paperless-ngx.yml b/lotus-land-story/paperless-ngx.yml
index 9d8a461..02ddd23 100644
--- a/lotus-land-story/paperless-ngx.yml
+++ b/lotus-land-story/paperless-ngx.yml
@@ -39,7 +39,7 @@
           PAPERLESS_TASK_WORKERS: "1"
           PAPERLESS_THREADS_PER_WORKER: "1"
           PAPERLESS_TIME_ZONE: America/Los_Angeles
-          PAPERLESS_URL: https://docs.chislan.family
+          PAPERLESS_URL: https://docs
           PAPERLESS_WEBSERVER_WORKERS: "1"
         volumes:
           - /mnt/lotus-land-story/paperless-ngx/data:/usr/src/paperless/data
@@ -53,7 +53,6 @@
         etc_hosts:
           host.docker.internal: host-gateway
 
-
   handlers:
     - name: Import restarts
       ansible.builtin.import_tasks: restarts.yml
diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile
index b780e03..6373839 100644
--- a/lotus-land-story/templates/Caddyfile
+++ b/lotus-land-story/templates/Caddyfile
@@ -103,27 +103,6 @@ books {
 	}
 }
 
-docs.chislan.family {
-	log
-
-	forward_auth authelia:9091 {
-		uri /api/verify?rd=https://auth.chislan.family
-		copy_headers Remote-User
-
-		# This import needs to be included if you're relying on a trusted proxies configuration.
-		import trusted_proxy_list
-	}
-
-	reverse_proxy paperless-ngx:8000 {
-		import trusted_proxy_list
-	}
-
-	redir /flower /flower/
-	handle /flower/* {
-		reverse_proxy paperless-ngx:5555
-	}
-}
-
 docs {
 	tls internal
 	bind tailscale/docs