container-server/services/proxy/Caddyfile

159 lines
2.8 KiB
Text
Raw Normal View History

(logging) {
log {
output stdout
format transform "{common_log}"
}
}
2022-06-19 13:18:17 +02:00
{
local_certs
# email {$TLS_EMAIL}
# acme_ca {$CA_URL}
import logging
}
(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
https://{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy /_matrix* matrix:8008
2019-12-04 22:00:55 +01:00
root * /srv/homepage
file_server
2019-11-10 23:46:12 +01:00
}
2020-03-01 00:02:11 +01:00
# https://{$BASE_DOMAIN}:8448 {
# import errorpages
# import logging
# reverse_proxy matrix:8008
2020-03-01 00:02:11 +01:00
# }
2019-10-27 16:35:12 +01:00
# needs to be http!
http://autoconfig.{$BASE_DOMAIN} {
file_server {
root /srv/autoconfig
}
}
2019-11-06 21:18:36 +01:00
https://echo.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy echo:8000
2019-10-27 16:35:12 +01:00
}
2022-12-17 19:20:46 +01:00
https://auth.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy authentik:80
}
https://mail.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy roundcube:80
}
https://git.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy forgejo:3000
}
2023-02-18 01:23:11 +01:00
https://ci.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy woodpecker:8000
}
https://cloud.{$BASE_DOMAIN} {
import errorpages
import logging
redir /.well-known/carddav /remote.php/dav
redir /.well-known/caldav /remote.php/dav
redir /.well-known/webfinger /public.php?service=webfinger
reverse_proxy nextcloud:80
}
https://passwords.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy /notifications/hub/negotiate* vaultwarden:80
reverse_proxy /notifications/hub* vaultwarden:3012
reverse_proxy vaultwarden:80
}
2022-12-22 18:11:48 +01:00
https://md.{$BASE_DOMAIN} {
import errorpages
import logging
reverse_proxy hedgedoc:3000
}
# https://ci-demo.{$BASE_DOMAIN} {
# import errorpages
# import logging
# reverse_proxy docker-ci-demo:8000
# }
2019-12-04 22:00:55 +01:00
2020-03-01 00:02:11 +01:00
# https://stuff.{$BASE_DOMAIN} {
# import errorpages
# import logging
# root * /srv/stuff
# file_server browse
# basicauth /dev {
# dev {$DEV_PASS}
# }
2020-03-01 00:02:11 +01:00
# }
2019-11-06 22:31:16 +01:00
# https://hackmd-next.{$BASE_DOMAIN} {
# import errorpages
# import logging
# reverse_proxy codimd:3000
# }
2022-06-06 17:13:46 +02:00
# https://amp.{$BASE_DOMAIN} {
# import errorpages
# import logging
# reverse_proxy minecraft:8080
# }
# https://map.amp.{$BASE_DOMAIN} {
# import errorpages
# import logging
# 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
# }
# }