container-server/proxy/Caddyfile

89 lines
1.9 KiB
Caddyfile

{
email {$TLS_EMAIL}
acme_ca https://acme-staging-v02.api.letsencrypt.org/directory
# header / Strict-Transport-Security "max-age=31536000;"
log / stdout "{host} - {common}"
errors stdout
gzip
}
# (common) {
# }
# http://autoconfig.{$BASE_DOMAIN} {
# root /srv/autoconfig
# }
https://proxy.{$BASE_DOMAIN} {
# tls {$TLS_EMAIL} {
# key_type rsa4096
# }
# on certrenew echo reload | nc reloader:9000
# root /srv/homepage
# rewrite .* /homepage/{uri}
# git {
# repo ssh://git@gitea:/carsten/homepage.git
# path /build/homepage
# key /root/deploy_keys/caddy
# hook /__gitea_hook__ lajrbgclnusgtbmslgtbec
# clone_args --recurse-submodules
# pull_args --recurse-submodules
# then hugo --cleanDestinationDir --destination /srv/homepage
# }
reverse_proxy /_matrix matrix:8008
reverse_proxy / homepage:80
}
# https://{$BASE_DOMAIN}:8448 {
# reverse_proxy / matrix:8008
# }
https://echo.{$BASE_DOMAIN} {
reverse_proxy / echo:8000
}
https://ci-demo.{$BASE_DOMAIN} {
reverse_proxy / docker-ci-demo:8000
}
# https://stuff.{$BASE_DOMAIN} {
# root /srv/stuff
# browse
# basicauth /dev dev {$DEV_PASS}
# }
https://cloud.{$BASE_DOMAIN} {
redir {
/.well-known/carddav /remote.php/dav
/.well-known/caldav /remote.php/dav
/.well-known/webfinger /public.php?service=webfinger
}
reverse_proxy / nextcloud:80
}
https://bitwarden.{$BASE_DOMAIN} {
reverse_proxy /notifications/hub/negotiate bitwarden:80
reverse_proxy /notifications/hub bitwarden:3012
reverse_proxy / bitwarden:80
}
https://git.{$BASE_DOMAIN} {
reverse_proxy / gitea:3000
}
https://ci.{$BASE_DOMAIN} {
reverse_proxy / drone:80
}
https://hackmd-next.{$BASE_DOMAIN} {
reverse_proxy / codimd:3000
}
https://md.{$BASE_DOMAIN} {
reverse_proxy / non-existent:3000
}
https://amp.{$BASE_DOMAIN} {
proxy / minecraft:8080
}