From 9971a09f75990ed13b4e73ec280c40e2d9123703 Mon Sep 17 00:00:00 2001 From: VinhPham2106 Date: Wed, 17 Sep 2025 09:41:59 -0400 Subject: [PATCH 1/2] limit log size --- mkchal/templates/docker-compose.yml | 2 ++ mkchal/templates/pwn/docker-compose.yml | 2 ++ mkchal/templates/web/docker-compose.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/mkchal/templates/docker-compose.yml b/mkchal/templates/docker-compose.yml index 269c25b..12bcd1a 100644 --- a/mkchal/templates/docker-compose.yml +++ b/mkchal/templates/docker-compose.yml @@ -7,6 +7,8 @@ services: context: ../ logging: driver: "json-file" + max-size: "50k" + max-file: "3" expose: # This should be the port your challenge runs on inside the container. - "{port}" labels: # If you have a second service make sure the service name and port are replaced diff --git a/mkchal/templates/pwn/docker-compose.yml b/mkchal/templates/pwn/docker-compose.yml index 6475c49..3f23b70 100644 --- a/mkchal/templates/pwn/docker-compose.yml +++ b/mkchal/templates/pwn/docker-compose.yml @@ -8,6 +8,8 @@ services: context: ../ logging: driver: "json-file" + max-size: "50k" + max-file: "3" restart: always expose: # This should be the port your challenge runs on inside the container. - "{port}" diff --git a/mkchal/templates/web/docker-compose.yml b/mkchal/templates/web/docker-compose.yml index 3088adb..d834ead 100644 --- a/mkchal/templates/web/docker-compose.yml +++ b/mkchal/templates/web/docker-compose.yml @@ -7,6 +7,8 @@ services: context: ../ logging: driver: "json-file" + max-size: "50k" + max-file: "3" expose: # This should be the port your challenge runs on inside the container. - "{port}" labels: # please do not delete these labels, if you have a second service make sure the service name and port are replaced From 3590febf1757e80be1270c354f5b783536df54a8 Mon Sep 17 00:00:00 2001 From: VinhPham2106 Date: Wed, 17 Sep 2025 09:43:12 -0400 Subject: [PATCH 2/2] typo for rate limit option --- mkchal/templates/web/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkchal/templates/web/docker-compose.yml b/mkchal/templates/web/docker-compose.yml index d834ead..daa6c95 100644 --- a/mkchal/templates/web/docker-compose.yml +++ b/mkchal/templates/web/docker-compose.yml @@ -17,8 +17,8 @@ services: - "traefik.http.routers.${{COMPOSE_PROJECT_NAME}}.tls={{}}" - "traefik.http.routers.${{COMPOSE_PROJECT_NAME}}.entrypoints=websecure" # Delete this line, edit and uncomment the lines below to configure rate limiting for your service - # - "traefik.http.middlewares.fluf.ratelimit.average=100" - # - "traefik.http.routers.${{COMPOSE_PROJECT_NAME}}.middlewares=fluf" - # - "traefik.http.middlewares.fluf.ratelimit.burst=100" + # - "traefik.http.middlewares.ffuf-${{COMPOSE_PROJECT_NAME}}.ratelimit.average=100" + # - "traefik.http.routers.${{COMPOSE_PROJECT_NAME}}.middlewares=ffuf-${{COMPOSE_PROJECT_NAME}}" + # - "traefik.http.middlewares.ffuf-${{COMPOSE_PROJECT_NAME}}.ratelimit.burst=100" ports: - "1337:{port}"