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` 1. `pnpm install`
2. `pnpm initialize_data` 2. `pnpm initialize_data`
3. `docker compose up` 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,6 +8,7 @@
{$CADDY_BASE_HOST} { {$CADDY_BASE_HOST} {
route { route {
crowdsec crowdsec
}
encode zstd gzip encode zstd gzip
reverse_proxy http://frontend:3000 reverse_proxy http://frontend:3000
handle_path /api/* { handle_path /api/* {
@@ -18,7 +19,6 @@
reverse_proxy http://minio:9000 reverse_proxy http://minio:9000
} }
}
log { log {
output file /var/log/caddy/access.log output file /var/log/caddy/access.log
} }