container-server/proxy/Caddyfile

76 lines
1.5 KiB
Caddyfile

https://local.lan {
log / stdout "{host} - {common}"
errors stdout
tls self_signed
gzip
root /srv/homepage
git {
repo ssh://git@gitlab.csprung.de:vserver/homepage.git
path /build/homepage
key /root/deploy_keys/caddy
hook /__gitlab_hook__
clone_args --recurse-submodules
pull_args --recurse-submodules
then hugo --cleanDestinationDir --destination /srv/homepage
}
}
http://*.local.lan {
redir https://{host}{uri}
}
https://echo.local.lan {
log / stdout "{host} - {common}"
errors stdout
tls self_signed
gzip
proxy / echo:8000 {
transparent
}
}
https://cloud.local.lan {
log / stdout "{host} - {common}"
errors stdout
tls self_signed
gzip
proxy / nextcloud:80 {
transparent
header_upstream X-Forwarded-Host {host}
}
redir {
/.well-known/carddav /remote.php/dav
/.well-known/caldav /remote.php/dav
/.well-known/webfinger /public.php?service=webfinger
}
}
https://git.local.lan {
log / stdout "{host} - {common}"
errors stdout
tls self_signed
gzip
proxy / gitea:3000 {
transparent
}
}
https://ci.local.lan {
log / stdout "{host} - {common}"
errors stdout
tls self_signed
gzip
proxy / drone:80 {
transparent
}
}
https://notes.local.lan {
log / stdout "{host} - {common}"
errors stdout
tls self_signed
gzip
proxy / codimd:3000 {
transparent
}
}