caddy
change
commit 7decc855baf883a943a6047ad21a426142876f0e
author Alpha Chen <alpha@kejadlen.dev>
date
parent e37cbca5
diff --git a/lotus-land-story/caddy.yml b/lotus-land-story/caddy.yml
index 0bc2576..9d4c4c0 100644
--- a/lotus-land-story/caddy.yml
+++ b/lotus-land-story/caddy.yml
@@ -2,6 +2,8 @@
   hosts: lotus-land-story
   vars_files:
     - vars.yml
+  vars:
+    version: 2.8.4
   tasks:
 
     - name: Make /mnt/lotus-land-story/caddy
@@ -35,7 +37,7 @@
     - name: Run Caddy
       community.docker.docker_container:
         name: caddy
-        image: caddy:2.7.4
+        image: caddy:{{ version }}
         restart: true
         ports:
           - "80:80"
diff --git a/lotus-land-story/templates/Caddyfile b/lotus-land-story/templates/Caddyfile
index 5916be0..675f3a0 100644
--- a/lotus-land-story/templates/Caddyfile
+++ b/lotus-land-story/templates/Caddyfile
@@ -6,7 +6,7 @@
 
 # https://www.authelia.com/integration/proxies/caddy/#forwarded-header-trust#trusted-proxies
 (trusted_proxy_list) {
-       trusted_proxies {{ trusted_proxies }}
+	trusted_proxies {{ trusted_proxies }}
 }
 
 :2019 {
@@ -95,7 +95,7 @@ books.{{ domain }} {
 	}
 }
 
-docs.chislan.family
+docs.chislan.family {
 	forward_auth authelia:9091 {
 		uri /api/verify?rd=https://auth.chislan.family
 		copy_headers Remote-User