prod preparation
This commit is contained in:
@@ -4,11 +4,21 @@
|
||||
acme_ca https://acme-v02.api.letsencrypt.org/directory
|
||||
debug
|
||||
}
|
||||
bizmatch.net {
|
||||
|
||||
}
|
||||
www.bizmatch.net {
|
||||
|
||||
# Prod: Neue Domains
|
||||
bizmatch.net, www.bizmatch.net {
|
||||
handle /pictures/* {
|
||||
root * /home/aknuth/git/bizmatch-project-prod/bizmatch-server # Prod-Ordner
|
||||
file_server
|
||||
}
|
||||
handle {
|
||||
root * /srv/prod # 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
|
||||
@@ -77,7 +87,14 @@ api-dev.bizmatch.net {
|
||||
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}
|
||||
|
||||
Reference in New Issue
Block a user