http://autoconfig.{$BASE_DOMAIN} { log / stdout "{host} - {common}" errors stdout root /srv/autoconfig } http://*.{$BASE_DOMAIN} { redir https://{host}{uri} } https://{$BASE_DOMAIN} { import config/common 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 } } https://echo.{$BASE_DOMAIN} { import config/common proxy / echo:8000 { transparent } } https://stuff.{$BASE_DOMAIN} { import config/common root /srv/stuff browse basicauth /dev dev asdfasdf } https://cloud.{$BASE_DOMAIN} { import config/common 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://bitwarden.{$BASE_DOMAIN} { import config/common proxy /notifications/hub/negotiate bitwarden:80 { transparent } proxy /notifications/hub bitwarden:3012 { websocket } proxy / bitwarden:80 { transparent } } https://git.{$BASE_DOMAIN} { import config/common proxy / gitea:3000 { transparent } } https://ci.{$BASE_DOMAIN} { import config/common proxy / drone:80 { transparent } } https://notes.{$BASE_DOMAIN} { import config/common proxy / codimd:3000 { transparent } }