container-server/proxy/Caddyfile

104 lines
2 KiB
Text
Raw Normal View History

2019-12-05 23:02:48 +01:00
# header / Strict-Transport-Security "max-age=31536000;"
2019-11-10 15:22:28 +01:00
http://autoconfig.{$BASE_DOMAIN} {
log / stdout "{host} - {common}"
errors stdout
root /srv/autoconfig
}
2019-11-06 21:18:36 +01:00
https://{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-12-04 22:00:55 +01:00
tls {$TLS_EMAIL} {
key_type rsa4096
}
on certrenew echo reload | nc reloader:9000
2019-10-21 21:57:02 +02:00
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
}
2019-11-10 23:46:12 +01:00
proxy /_matrix matrix:8008 {
transparent
}
}
2019-11-19 23:17:02 +01:00
https://{$BASE_DOMAIN}:8448 {
import config/common
2019-11-10 23:46:12 +01:00
proxy / matrix:8008 {
transparent
}
2019-10-21 21:57:02 +02:00
}
2019-10-27 16:35:12 +01:00
2019-11-06 21:18:36 +01:00
https://echo.{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-11-06 21:18:36 +01:00
proxy / echo:8000 {
transparent
}
2019-10-27 16:35:12 +01:00
}
2019-12-04 22:00:55 +01:00
https://ci-echo.{$BASE_DOMAIN} {
import config/common
proxy / docker-ci-example:8000 {
transparent
}
}
2019-11-06 22:31:16 +01:00
https://stuff.{$BASE_DOMAIN} {
import config/common
root /srv/stuff
browse
2019-11-26 21:13:34 +01:00
basicauth /dev dev {$DEV_PASS}
2019-11-06 22:31:16 +01:00
}
2019-11-06 21:18:36 +01:00
https://cloud.{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-10-27 16:35:12 +01:00
proxy / nextcloud:80 {
transparent
}
2019-10-27 20:03:24 +01:00
redir {
/.well-known/carddav /remote.php/dav
/.well-known/caldav /remote.php/dav
/.well-known/webfinger /public.php?service=webfinger
}
}
2019-11-06 21:18:36 +01:00
https://bitwarden.{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-11-06 21:18:36 +01:00
proxy /notifications/hub/negotiate bitwarden:80 {
2019-11-05 22:32:12 +01:00
transparent
}
2019-11-06 21:18:36 +01:00
proxy /notifications/hub bitwarden:3012 {
2019-11-05 22:32:12 +01:00
websocket
2019-10-27 20:03:24 +01:00
}
2019-11-06 21:18:36 +01:00
proxy / bitwarden:80 {
2019-11-05 22:32:12 +01:00
transparent
}
}
2019-11-06 21:18:36 +01:00
https://git.{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-11-06 21:18:36 +01:00
proxy / gitea:3000 {
transparent
}
2019-10-27 20:03:24 +01:00
}
2019-11-06 21:18:36 +01:00
https://ci.{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-11-06 21:18:36 +01:00
proxy / drone:80 {
transparent
}
2019-10-27 16:35:12 +01:00
}
2019-11-02 23:56:28 +01:00
2019-11-06 21:18:36 +01:00
https://notes.{$BASE_DOMAIN} {
2019-11-06 22:31:16 +01:00
import config/common
2019-11-06 21:18:36 +01:00
proxy / codimd:3000 {
transparent
}
2019-11-02 23:56:28 +01:00
}