Improve Caddyfile editor for demo-style configs
Publish Docker image / build (push) Failing after 6s

This commit is contained in:
Daniel committed 2026-05-03 18:59:32 +02:00
1 parent d672ad3f47
commit e9035bf6fe
7 files changed
+1130 -47

No files matched your search

+79
View File
@@ -0,0 +1,79 @@
(cors-origin) {
@match-cors-preflight-{args[0]} {
header Origin "{args[0]}"
method OPTIONS
}
handle @match-cors-preflight-{args[0]} {
header {
Access-Control-Allow-Origin "{args[0]}"
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
Access-Control-Allow-Headers *
Access-Control-Max-Age "3600"
defer
}
respond "" 204
}
@match-cors-request-{args[0]} {
header Origin "{args[0]}"
not method OPTIONS
}
handle @match-cors-request-{args[0]} {
header {
Access-Control-Allow-Origin "{http.request.header.origin}"
Access-Control-Expose-Headers *
defer
}
}
}
*.example.de {
tls {
issuer acme {
dns netcup {
customer_number {env.NETCUP_CUSTOMER_NUMBER}
api_key {env.NETCUP_API_KEY}
api_password {env.NETCUP_API_PASSWORD}
}
resolvers 8.8.8.8 1.1.1.1
propagation_timeout 30m
propagation_delay 15m
}
}
@jellyfin host jellyfin.example.de
handle @jellyfin {
encode gzip
reverse_proxy 192.168.1.7:8098
}
@auth host auth.example.de
handle @auth {
import cors-origin https://home.example.de
reverse_proxy 192.168.1.7:9091
}
@hassio host hassio.example.de
handle @hassio {
reverse_proxy 192.168.1.4:8123
}
@pdf host pdf.example.de
handle @pdf {
forward_auth 192.168.1.7:9091 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy 192.168.1.7:3300
}
# Fallback for otherwise unhandled domains
handle {
abort
}
}