mirror of
https://github.com/penpot/penpot.git
synced 2026-09-24 12:56:15 +00:00
🔧 Drop loopback bind on the stub_status endpoint
A compose port mapping delivers traffic to the container address, never to loopback, so `listen 127.0.0.1:8082` made `ports: <host>:8082` fail from the host. Both configs (image template and devenv) now use `listen 8082`, which binds every interface and matches the implicit bind of the public `listen 8080 default_server`. Rewrite both block comments to state the new bind and who decides access from outside the host. The scrape URI stays on 127.0.0.1:8082: it still reaches the socket. AI-assisted-by: mimo-v2.6-flash-free
This commit is contained in:
parent
5b3844c37a
commit
de6fb9d13e
@ -308,12 +308,14 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Dedicated health endpoint for the optional nginx-prometheus-exporter
|
# Dedicated health endpoint for the optional nginx-prometheus-exporter
|
||||||
# sidecar (scraping http://127.0.0.1:8082/stub_status). Bound to
|
# sidecar (scraping http://127.0.0.1:8082/stub_status). `listen 8082`
|
||||||
# localhost only and out of the public server, so it can not be
|
# binds every interface and sits out of the public server: a compose
|
||||||
# reached from outside the host. Counts client-side connections only;
|
# port mapping delivers traffic to the container address, never to
|
||||||
# it says nothing about the upstream pools.
|
# loopback, so only the published port decides who gets in from outside
|
||||||
|
# the host. Counts client-side connections only; it says nothing about
|
||||||
|
# the upstream pools.
|
||||||
server {
|
server {
|
||||||
listen 127.0.0.1:8082;
|
listen 8082;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|||||||
@ -199,11 +199,13 @@ http {
|
|||||||
|
|
||||||
# Dedicated health endpoint consumed by the nginx-prometheus-exporter
|
# Dedicated health endpoint consumed by the nginx-prometheus-exporter
|
||||||
# sidecar (deployed by ops, scraping http://127.0.0.1:8082/stub_status).
|
# sidecar (deployed by ops, scraping http://127.0.0.1:8082/stub_status).
|
||||||
# Bound to localhost only and out of the public server, so it can not
|
# `listen 8082` binds every interface and sits out of the public server:
|
||||||
# be reached from outside the host. Counts client-side connections
|
# a compose port mapping delivers traffic to the container address, never
|
||||||
# only; it says nothing about the upstream pools.
|
# to loopback, so only the published port decides who gets in from
|
||||||
|
# outside the host. Counts client-side connections only; it says nothing
|
||||||
|
# about the upstream pools.
|
||||||
server {
|
server {
|
||||||
listen 127.0.0.1:8082;
|
listen 8082;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
access_log off;
|
access_log off;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user