From 71046b9a1c6a4ddb8fa91e0cd1c6c8e948d74248 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 1 Dec 2024 20:01:00 +0100 Subject: [PATCH] Avoid exposing internal port and unnecessary endpoints --- docker-compose.yml | 2 +- nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 18050d1..64b54c7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: volumes: - "./tmp/libre-captcha-data:/lc-core/data" ports: - - "8888:8888" + - 8888 nginx: image: nginx:latest ports: diff --git a/nginx.conf b/nginx.conf index 6371bdd..58c2bb9 100644 --- a/nginx.conf +++ b/nginx.conf @@ -12,8 +12,8 @@ server { proxy_set_header Host $http_host; } - location /captcha/ { - proxy_pass http://libre-captcha:8888/; + location /captcha/v2/media/ { + proxy_pass http://libre-captcha:8888/v2/media/; proxy_set_header Host $http_host; }