141 lines
3.7 KiB
Caddyfile
141 lines
3.7 KiB
Caddyfile
{
|
|
email {env.CLOUDFLARE_EMAIL}
|
|
acme_dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
|
acme_ca https://acme-v02.api.letsencrypt.org/directory
|
|
debug
|
|
}
|
|
# Prod: Neue Domains
|
|
www.bizmatch.net {
|
|
handle /pictures/* {
|
|
root * /home/aknuth/git/bizmatch-project-prod/bizmatch-server # Prod-Ordner
|
|
file_server
|
|
}
|
|
handle {
|
|
root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner
|
|
try_files {path} {path}/ /index.html
|
|
file_server
|
|
}
|
|
log {
|
|
output file /var/log/caddy/access.prod.log # Separate Logs
|
|
}
|
|
encode gzip
|
|
}
|
|
bayarea-cc.com {
|
|
# TLS-Direktive entfernen, falls Cloudflare die Verbindung terminiert
|
|
# tls {
|
|
# dns cloudflare {env.CLOUDFLARE_API_TOKEN}
|
|
# }
|
|
|
|
handle /api {
|
|
reverse_proxy host.docker.internal:3001
|
|
}
|
|
handle {
|
|
root * /app
|
|
try_files {path} /index.html
|
|
file_server
|
|
}
|
|
log {
|
|
output stderr
|
|
format console
|
|
}
|
|
encode gzip
|
|
}
|
|
www.bayarea-cc.com {
|
|
redir https://bayarea-cc.com{uri} permanent
|
|
}
|
|
fancytextstuff.com {
|
|
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
|
handle {
|
|
reverse_proxy host.docker.internal:3010
|
|
}
|
|
log {
|
|
output file /var/log/caddy/fancytext.log
|
|
format console
|
|
}
|
|
encode gzip
|
|
}
|
|
cielectrical.bayarea-cc.com {
|
|
# wenn du API innerhalb von Next bedienst, weiterleiten an den Next Prozess
|
|
handle {
|
|
reverse_proxy localhost:3000
|
|
}
|
|
log {
|
|
output file /var/log/caddy/cielectrical.log
|
|
format console
|
|
}
|
|
encode gzip
|
|
}
|
|
www.fancytextstuff.com {
|
|
redir https://fancytextstuff.com{uri} permanent
|
|
}
|
|
auth.bizmatch.net {
|
|
reverse_proxy https://bizmatch-net.firebaseapp.com {
|
|
header_up Host bizmatch-net.firebaseapp.com
|
|
header_up X-Forwarded-For {remote_host}
|
|
header_up X-Forwarded-Proto {scheme}
|
|
header_up X-Real-IP {remote_host}
|
|
}
|
|
}
|
|
gitea.bizmatch.net {
|
|
reverse_proxy gitea:3500
|
|
}
|
|
|
|
dev.bizmatch.net {
|
|
handle /pictures/* {
|
|
root * /home/aknuth/git/bizmatch-project/bizmatch-server
|
|
file_server
|
|
}
|
|
|
|
handle {
|
|
root * /home/aknuth/git/bizmatch-project/bizmatch/dist/bizmatch/browser
|
|
try_files {path} {path}/ /index.html
|
|
file_server
|
|
}
|
|
|
|
log {
|
|
output file /var/log/caddy/access.log {
|
|
roll_size 10MB
|
|
roll_keep 5
|
|
roll_keep_for 48h
|
|
}
|
|
}
|
|
|
|
encode gzip
|
|
|
|
}
|
|
|
|
# api-dev.bizmatch.net {
|
|
# reverse_proxy host.docker.internal:3000 {
|
|
# header_up X-Real-IP {http.request.header.CF-Connecting-IP}
|
|
# header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
|
|
# header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
|
|
# header_up CF-IPCountry {http.request.header.CF-IPCountry}
|
|
# }
|
|
# }
|
|
|
|
api.bizmatch.net {
|
|
reverse_proxy host.docker.internal:3001 { # Neu: Proxy auf Prod-Port 3001
|
|
header_up X-Real-IP {http.request.header.CF-Connecting-IP}
|
|
header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
|
|
header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
|
|
header_up CF-IPCountry {http.request.header.CF-IPCountry}
|
|
}
|
|
}
|
|
mailsync.bizmatch.net {
|
|
reverse_proxy host.docker.internal:5000 {
|
|
header_up X-Real-IP {http.request.header.CF-Connecting-IP}
|
|
header_up X-Forwarded-For {http.request.header.CF-Connecting-IP}
|
|
header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
|
|
header_up CF-IPCountry {http.request.header.CF-IPCountry}
|
|
}
|
|
}
|
|
|
|
mail.andreasknuth.de {
|
|
reverse_proxy nginx-mailcow:8080
|
|
}
|
|
web.email-bayarea.com {
|
|
reverse_proxy nginx-mailcow:8080
|
|
}
|
|
mail.email-srvr.com autodiscover.mail.email-srvr.com autoconfig.mail.email-srvr.com {
|
|
reverse_proxy nginx-mailcow:8080
|
|
} |