From c23a50ce9facf46a4cad4e437e8c28b93b9eeb3d Mon Sep 17 00:00:00 2001 From: Tanguy NICOLAS Date: Fri, 28 Jun 2024 21:20:02 +0200 Subject: [PATCH] feat: secure API --- infra/nginx/configurations/ctf-manager.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/nginx/configurations/ctf-manager.conf b/infra/nginx/configurations/ctf-manager.conf index f8711e7..e9654ee 100644 --- a/infra/nginx/configurations/ctf-manager.conf +++ b/infra/nginx/configurations/ctf-manager.conf @@ -6,7 +6,7 @@ server { # deny all; # Exception for /team/*/flag - location ~* ^/team/.*/flag$ { + location ~* ^/team/[^/]+/flag/$ { proxy_pass http://api:80; proxy_set_header Host $host;