<#889 Extracting the correct IP address in dev env...
# osctrl
g
#889 Extracting the correct IP address in dev env Pull request opened by javuto Added
SERVICE_TRUSTED_PROXIES=172.16.0.0/12
to the
osctrl-tls
and
osctrl-api
environment sections in
docker-compose-dev.yml
. The
172.16.0.0/12
CIDR covers all Docker default bridge network subnets, so
GetIP()
will now honor the
X-Forwarded-For
and
X-Real-IP
headers that nginx sets, returning the real client IP. jmpsec/osctrl