updated caddy file
All checks were successful
backend-action / build-image (push) Successful in 29s

This commit is contained in:
2024-04-22 13:08:34 +07:00
parent eee12e5872
commit 0889c2426d
2 changed files with 11 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
1. `pnpm install`
2. `pnpm initialize_data`
3. `docker compose up`
4. `docker compose exec crowdsec cscli bouncers add CaddyBouncer` to get api key
5. add api key to `CROWDSEC_API_KEY=<KEY>` in `.env` file

View File

@@ -8,16 +8,16 @@
{$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
}
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