aboutsummaryrefslogtreecommitdiffstats
path: root/docker/caddy/Caddyfile
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-07-27 00:22:33 +0800
committershu <nvcsadjkojf@outlook.com>2026-07-27 00:22:33 +0800
commitaaa0cf501ce44a7c7c54c7c5c6485cfb7f60e583 (patch)
treeda94ef66e9830d09961e577f87d36e63a6076ce5 /docker/caddy/Caddyfile
parent338cc101f127e4841689c1f81227ee033e57ad28 (diff)
Add Docker Compose deployment
Diffstat (limited to 'docker/caddy/Caddyfile')
-rw-r--r--docker/caddy/Caddyfile44
1 files changed, 44 insertions, 0 deletions
diff --git a/docker/caddy/Caddyfile b/docker/caddy/Caddyfile
new file mode 100644
index 0000000..aee104b
--- /dev/null
+++ b/docker/caddy/Caddyfile
@@ -0,0 +1,44 @@
+{
+ admin off
+}
+
+(authelia) {
+ forward_auth authelia:9091 {
+ uri /api/authz/forward-auth
+ copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
+ }
+}
+
+auth.{$BASE_DOMAIN:tdwiki.home.arpa} {
+ tls internal
+ encode zstd gzip
+ reverse_proxy authelia:9091
+}
+
+wiki.{$BASE_DOMAIN:tdwiki.home.arpa} {
+ tls internal
+ encode zstd gzip
+ import authelia
+
+ header {
+ X-Content-Type-Options nosniff
+ Referrer-Policy same-origin
+ }
+
+ reverse_proxy tiddlywiki:8080
+}
+
+dav.{$BASE_DOMAIN:tdwiki.home.arpa} {
+ tls internal
+ import authelia
+
+ header {
+ X-Content-Type-Options nosniff
+ }
+
+ route {
+ webdav {
+ root /srv/files
+ }
+ }
+}