Files
sorvor-back/caddy/Caddyfile
Thanu Poptiphueng 0889c2426d
All checks were successful
backend-action / build-image (push) Successful in 29s
updated caddy file
2024-04-22 13:08:34 +07:00

26 lines
417 B
Caddyfile

{
crowdsec {
api_url {$CROWDSEC_API_URL}
api_key {$CROWDSEC_API_KEY}
}
}
{$CADDY_BASE_HOST} {
route {
crowdsec
}
encode zstd gzip
reverse_proxy http://frontend:3000
handle_path /api/* {
reverse_proxy http://backend:3000
}
handle_path /profileImages/* {
rewrite * /sorvor{path}
reverse_proxy http://minio:9000
}
log {
output file /var/log/caddy/access.log
}
}