bizmatch.net
This commit is contained in:
69
Caddyfile
69
Caddyfile
@@ -7,34 +7,19 @@
|
|||||||
##############
|
##############
|
||||||
##### BIZMATCH
|
##### BIZMATCH
|
||||||
##############
|
##############
|
||||||
www.bizmatch.net {
|
www.bizmatch.net, bizmatch.net {
|
||||||
handle /pictures/* {
|
handle /pictures/* {
|
||||||
root * /home/aknuth/git/bizmatch-project/bizmatch-server # Prod-Ordner
|
# Statische Bilder direkt aus dem Volume des SSR-Containers
|
||||||
|
root * /app/pictures
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
# Statische Dateien (CSS, JS, Bilder) – lange cachen, da sich der Name bei Änderungen ändert
|
|
||||||
header /assets/* Cache-Control "public, max-age=31536000, immutable"
|
|
||||||
header /*.css Cache-Control "public, max-age=31536000, immutable"
|
|
||||||
header /*.js Cache-Control "public, max-age=31536000, immutable"
|
|
||||||
|
|
||||||
# Die index.html und API-Antworten – NIEMALS cachen
|
|
||||||
header /index.html Cache-Control "no-cache, no-store, must-revalidate"
|
|
||||||
|
|
||||||
#handle {
|
|
||||||
# root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner
|
|
||||||
# try_files {path} {path}/ /index.html
|
|
||||||
# file_server
|
|
||||||
#}
|
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy host.docker.internal:4200
|
reverse_proxy bizmatch-ssr:4000
|
||||||
}
|
}
|
||||||
log {
|
|
||||||
output file /var/log/caddy/access.prod.log # Separate Logs
|
|
||||||
}
|
|
||||||
encode gzip zstd
|
|
||||||
}
|
}
|
||||||
bizmatch.net {
|
|
||||||
redir https://www.bizmatch.net{uri} permanent
|
api.bizmatch.net {
|
||||||
|
reverse_proxy bizmatch-app:3001
|
||||||
}
|
}
|
||||||
auth.bizmatch.net {
|
auth.bizmatch.net {
|
||||||
reverse_proxy https://bizmatch-net.firebaseapp.com {
|
reverse_proxy https://bizmatch-net.firebaseapp.com {
|
||||||
@@ -48,47 +33,7 @@ gitea.bizmatch.net {
|
|||||||
reverse_proxy gitea:3500
|
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.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}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
##############
|
##############
|
||||||
##### QRMASTER
|
##### QRMASTER
|
||||||
##############
|
##############
|
||||||
|
|||||||
Reference in New Issue
Block a user