Initial commit
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
{
|
||||
email e.naumenko@lasernanofab.de
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/access.log {
|
||||
roll_size 50mb
|
||||
roll_keep 5
|
||||
roll_keep_for 720h
|
||||
}
|
||||
format json
|
||||
}
|
||||
|
||||
# Caddy Admin-API + Prometheus-Metrics
|
||||
admin 0.0.0.0:2019
|
||||
|
||||
servers {
|
||||
metrics
|
||||
}
|
||||
}
|
||||
|
||||
v2202510301049387828.goodsrv.de {
|
||||
encode zstd gzip
|
||||
|
||||
# Well-known Redirects …
|
||||
@wk_caldav path /.well-known/caldav
|
||||
@wk_carddav path /.well-known/carddav
|
||||
@wk_webf path /.well-known/webfinger
|
||||
@wk_node path /.well-known/nodeinfo
|
||||
@wk_hostm path /.well-known/host-meta
|
||||
@wk_hostmj path /.well-known/host-meta.json
|
||||
redir @wk_caldav /remote.php/dav 301
|
||||
redir @wk_carddav /remote.php/dav 301
|
||||
redir @wk_webf /public.php?service=webfinger 301
|
||||
redir @wk_node /index.php/.well-known/nodeinfo 301
|
||||
redir @wk_hostm /public.php?service=host-meta 301
|
||||
redir @wk_hostmj /public.php?service=host-meta-json 301
|
||||
|
||||
reverse_proxy app:80 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
header_up X-Forwarded-For {remote}
|
||||
}
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
Referrer-Policy "no-referrer"
|
||||
Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
}
|
||||
|
||||
flowise.v2202510301049387828.goodsrv.de {
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy flowise:3000 {
|
||||
# die drei Header sind ok; Caddy setzt XFF/Proto i.d.R. automatisch,
|
||||
# aber so sind wir explizit
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
header_up X-Forwarded-For {remote}
|
||||
}
|
||||
|
||||
# optionale Security-Header
|
||||
header {
|
||||
Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
Referrer-Policy "no-referrer"
|
||||
Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
}
|
||||
|
||||
grafana.v2202510301049387828.goodsrv.de {
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy grafana:3000
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
Referrer-Policy "no-referrer"
|
||||
Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
}
|
||||
|
||||
git.v2202510301049387828.goodsrv.de {
|
||||
encode zstd gzip
|
||||
|
||||
reverse_proxy gitea:3000 {
|
||||
header_up X-Forwarded-Proto {scheme}
|
||||
header_up X-Forwarded-Host {host}
|
||||
header_up X-Forwarded-For {remote}
|
||||
}
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
Referrer-Policy "no-referrer"
|
||||
Permissions-Policy "interest-cohort=()"
|
||||
}
|
||||
}
|
||||
|
||||
# OTA-Host für ESP32-Firmware
|
||||
ota.v2202510301049387828.goodsrv.de {
|
||||
encode zstd gzip
|
||||
|
||||
# Root zeigt auf das gemountete Verzeichnis /srv/ota im Container
|
||||
root * /srv/ota
|
||||
file_server /* {
|
||||
browse # optional, damit du im Browser siehst, was drin liegt
|
||||
}
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=15552000; includeSubDomains; preload"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
Referrer-Policy "no-referrer"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user