container-server/proxy/Caddyfile

91 lines
1.8 KiB
Text
Raw Normal View History

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-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-11-06 22:31:16 +01:00
https://stuff.{$BASE_DOMAIN} {
import config/common
root /srv/stuff
browse
basicauth /dev dev asdfasdf
}
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-11-02 19:28:50 +01:00
header_upstream X-Forwarded-Host {host}
2019-10-27 16:35:12 +01:00
}
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
}