Avoid exposing internal port and unnecessary endpoints
This commit is contained in:
parent
5f01741943
commit
71046b9a1c
@ -41,7 +41,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- "./tmp/libre-captcha-data:/lc-core/data"
|
- "./tmp/libre-captcha-data:/lc-core/data"
|
||||||
ports:
|
ports:
|
||||||
- "8888:8888"
|
- 8888
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
|
@ -12,8 +12,8 @@ server {
|
|||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /captcha/ {
|
location /captcha/v2/media/ {
|
||||||
proxy_pass http://libre-captcha:8888/;
|
proxy_pass http://libre-captcha:8888/v2/media/;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user