mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-24 15:49:06 +02:00
[proxy] Serve UBI http-01 challenges on an unprivileged port
The challenge listener defaulted to :80, which the image's non-root user cannot bind on runtimes that keep the kernel's privileged-port floor, such as OpenShift and Podman. The proxy logged the failure and kept running without it, so http-01 issuance could never succeed. Default it to :8081, mirroring how the main listener already moves to :8443.
This commit is contained in:
@@ -24,6 +24,9 @@ RUN mkdir -p /var/lib/netbird /certs && \
|
||||
USER 1000:0
|
||||
ENV HOME=/var/lib/netbird
|
||||
ENV NB_PROXY_ADDRESS=":8443"
|
||||
# Unprivileged ports: runtimes such as OpenShift and Podman keep the kernel
|
||||
# default that reserves ports below 1024 for root. 8080 is the health probe.
|
||||
ENV NB_PROXY_ACME_ADDRESS=":8081"
|
||||
EXPOSE 8443
|
||||
STOPSIGNAL SIGTERM
|
||||
ENTRYPOINT ["/go/bin/netbird-proxy"]
|
||||
|
||||
Reference in New Issue
Block a user