added bouncer
All checks were successful
backend-action / build-image (push) Successful in 42s

This commit is contained in:
2024-04-22 12:56:02 +07:00
parent 63a5ad8a00
commit eee12e5872
3 changed files with 35 additions and 10 deletions

View File

@@ -1,13 +1,23 @@
{$CADDY_BASE_HOST} {
encode zstd gzip
reverse_proxy http://frontend:3000
handle_path /api/* {
reverse_proxy http://backend:3000
{
crowdsec {
api_url {$CROWDSEC_API_URL}
api_key {$CROWDSEC_API_KEY}
}
handle_path /profileImages/* {
rewrite * /sorvor{path}
reverse_proxy http://minio:9000
}
{$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