This commit is contained in:
1 parent
9e1464bd76
commit
3eb00a68f1
1 file changed
-79
@@ -1,79 +0,0 @@
|
|||||||
|
|
||||||
(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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in new issue
Block a user