minilauta / miniboard

Minimalistic oldschool imageboard software
MIT License
7 stars 5 forks source link

NGINX ingress add ConfigMap and configure proxy headers properly #52

Closed Anonyymi closed 1 year ago

Anonyymi commented 1 year ago

Currently the ingress controller does not forward X-Forwarded-For header values to the upstream service, meaning our miniboard NGINX nor App neither get the real public IP of the connecting client.

Configuring NGINX ingress via ConfigMap resource should allow us to pass the X-Forwarded-For header properly to upstream.

Anonyymi commented 1 year ago

https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#use-forwarded-headers

Anonyymi commented 1 year ago

Added manual instructions to README.md