container-server/services/proxy/Caddyfile

170 lines
2.9 KiB
Text
Raw Normal View History

(logging) {
log {
output stdout
}
}
2022-06-19 13:18:17 +02:00
{
# local_certs
email {$TLS_EMAIL}
acme_ca {$CA_URL}
}
(errorpages) {
handle_errors {
rewrite * /{http.error.status_code}.html
file_server {
root /srv/errorpages
}
}
2022-06-07 22:54:30 +02:00
}
(maintenance) {
@denied not remote_ip forwarded {$CADDY_BYPASS_IP}
handle @denied {
rewrite * /maintenance.html
file_server {
root /srv/errorpages
status 503
}
}
}
2019-11-10 15:22:28 +01:00
{$BASE_DOMAIN} {
2023-08-12 18:20:21 +02:00
import logging
import errorpages
@matrix {
path /_matrix/* /_synapse/*
}
reverse_proxy @matrix matrix:8008
2019-12-04 22:00:55 +01:00
2023-08-12 18:20:21 +02:00
root * /srv/homepage
file_server
}
{$BASE_DOMAIN}:8448 {
2023-08-12 18:20:21 +02:00
import logging
import errorpages
reverse_proxy matrix:8008
}
2019-11-10 23:46:12 +01:00
# needs to be http!
autoconfig.{$BASE_DOMAIN}, autoconfig.{$SECOND_MAIL_DOMAIN} {
2023-08-12 14:12:21 +02:00
file_server {
root /srv/autoconfig
}
}
status.{$BASE_DOMAIN} {
import errorpages
import logging
redir https://stats.uptimerobot.com/PMoGJHK8W9 permanent
}
post.{$BASE_DOMAIN} {
2023-08-12 14:12:21 +02:00
import errorpages
import logging
reverse_proxy echo:8000
}
2019-10-27 16:35:12 +01:00
account.{$BASE_DOMAIN} {
2022-12-17 19:20:46 +01:00
import logging
import errorpages
2022-12-17 19:20:46 +01:00
reverse_proxy authentik:80
}
cloud.{$BASE_DOMAIN} {
2023-08-12 14:12:21 +02:00
import logging
import errorpages
2023-08-12 14:12:21 +02:00
redir /.well-known/carddav /remote.php/dav
redir /.well-known/caldav /remote.php/dav
redir /.well-known/webfinger /index.php/.well-known/webfinger
redir /.well-known/nodeinfo /index.php/.well-known/nodeinfo
reverse_proxy nextcloud:80
}
git.{$BASE_DOMAIN} {
import logging
2023-08-12 14:12:21 +02:00
import errorpages
reverse_proxy forgejo:3000
}
home.{$BASE_DOMAIN} {
import logging
import errorpages
reverse_proxy https://doge6m1146mivr5g789a5tbjo0re3lrv.ui.nabu.casa
}
stuff.{$BASE_DOMAIN} {
import logging
import errorpages
root * /srv/public_html
file_server browse
}
md.{$BASE_DOMAIN} {
import logging
import errorpages
reverse_proxy hedgedoc:3000
}
2023-09-09 16:02:43 +02:00
ci.{$BASE_DOMAIN} {
import logging
import errorpages
reverse_proxy woodpecker:8000
}
# echo.{$BASE_DOMAIN} {
# import logging
# import errorpages
2023-08-12 14:12:21 +02:00
# reverse_proxy echo:8000
# }
2023-02-18 01:23:11 +01:00
# passwords.{$BASE_DOMAIN} {
# import logging
# import errorpages
# reverse_proxy /notifications/hub/negotiate* vaultwarden:80
# reverse_proxy /notifications/hub* vaultwarden:3012
# reverse_proxy vaultwarden:80
# }
# ci-demo.{$BASE_DOMAIN} {
# import logging
# import errorpages
# reverse_proxy docker-ci-demo:8000
# }
2019-12-04 22:00:55 +01:00
# hackmd-next.{$BASE_DOMAIN} {
# import logging
# import errorpages
# reverse_proxy codimd:3000
# }
2022-06-06 17:13:46 +02:00
# amp.{$BASE_DOMAIN} {
# import logging
# import errorpages
# reverse_proxy minecraft:8080
# }
# map.amp.{$BASE_DOMAIN} {
# import logging
# import errorpages
# root * /srv/bluemap
# file_server
# reverse_proxy /live/* minecraft:8123
# @JSONgz {
# path *.json
# file {
# try_files {path}.gz
# }
# }
# route @JSONgz {
# rewrite {http.matchers.file.relative}
# header Content-Type application/json
# header Content-Encoding gzip
# }
# }