caddyfile for bayarea-cc.com

This commit is contained in:
Andreas Knuth 2025-02-21 10:17:58 -06:00
parent 5fd2ddd2a5
commit 1386a2ccdc
1 changed files with 37 additions and 6 deletions

View File

@ -6,20 +6,51 @@ bizmatch.net {
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
} }
} }
bayarea-cc.com {
tls {
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
}
}
www.bizmatch.net { www.bizmatch.net {
tls { tls {
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
} }
} }
www.bayarea-cc.com { // www.bayarea-cc.com {
// tls {
// dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
// }
// }
// bayarea-cc.com {
// tls {
// dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
// }
// }
bayarea-cc.com, www.bayarea-cc.com {
# SSL/TLS mit Cloudflare DNS Challenge
tls { tls {
dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG dns cloudflare q1P7J3uqS96FGj_iiX2mI8y1ulTaIFrTp8tyTXhG
} }
# Statische Dateien aus dem Angular Build-Verzeichnis
root * /home/aknuth/git/bay-area-affiliates/dist/bay-area-affiliates/browser
file_server
# Reverse Proxy für API-Anfragen an Nest.js
@api {
path /api/*
}
reverse_proxy @api localhost:3001 {
# Optional: Header für Debugging
header_up X-Real-IP {remote_host}
}
# Fallback für Angular SPA Routing
try_files {path} /index.html
# Logging (optional)
log {
output file /var/log/caddy/bayarea-cc.log
format console
}
# Komprimierung für bessere Performance
encode gzip
} }
auth.bizmatch.net { auth.bizmatch.net {
reverse_proxy keycloak:8080 { reverse_proxy keycloak:8080 {