2019-12-05 23:02:48 +01:00
|
|
|
# header / Strict-Transport-Security "max-age=31536000;"
|
|
|
|
|
2020-03-01 00:02:11 +01:00
|
|
|
# http://autoconfig.{$BASE_DOMAIN} {
|
|
|
|
# log / stdout "{host} - {common}"
|
|
|
|
# errors stdout
|
|
|
|
# root /srv/autoconfig
|
|
|
|
# }
|
2019-11-10 15:22:28 +01:00
|
|
|
|
2020-03-01 00:02:11 +01:00
|
|
|
https://proxy.{$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 {
|
2020-03-01 00:02:11 +01:00
|
|
|
repo ssh://git@gitea:/carsten/homepage.git
|
2019-10-21 21:57:02 +02:00
|
|
|
path /build/homepage
|
|
|
|
key /root/deploy_keys/caddy
|
2020-03-01 00:02:11 +01:00
|
|
|
hook /__gitea_hook__ lajrbgclnusgtbmslgtbec
|
2019-10-21 21:57:02 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-01 00:02:11 +01:00
|
|
|
# https://{$BASE_DOMAIN}:8448 {
|
|
|
|
# import config/common
|
|
|
|
# proxy / matrix:8008 {
|
|
|
|
# transparent
|
|
|
|
# }
|
|
|
|
# }
|
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
|
|
|
}
|
|
|
|
|
2020-03-01 00:02:11 +01:00
|
|
|
https://ci-demo.{$BASE_DOMAIN} {
|
2019-12-04 22:00:55 +01:00
|
|
|
import config/common
|
2020-03-01 00:02:11 +01:00
|
|
|
proxy / docker-ci-demo:8000 {
|
2019-12-04 22:00:55 +01:00
|
|
|
transparent
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-01 00:02:11 +01:00
|
|
|
# https://stuff.{$BASE_DOMAIN} {
|
|
|
|
# import config/common
|
|
|
|
# root /srv/stuff
|
|
|
|
# browse
|
|
|
|
# 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
|
|
|
|
2020-03-01 00:02:11 +01:00
|
|
|
https://hackmd-next.{$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
|
|
|
}
|
2020-03-01 00:02:11 +01:00
|
|
|
|
|
|
|
https://md.{$BASE_DOMAIN} {
|
|
|
|
import config/common
|
|
|
|
proxy / non-existent:3000 {
|
|
|
|
transparent
|
|
|
|
}
|
|
|
|
}
|