Page MenuHomeDevCentral

Nginx proxies request with 127.0.0.1 as IP address
Open, NormalPublic

Description

Currently, the web requests are redirected like this:

  • for DevCentral: Nginx on Equatower → Web server on the container
  • for the forum: Nginx on Dwellers → Nginx on the container → Ruby server on the container.

With this system, they offer 127.0.0.1 as user IP address in the logs.

On both nginx configuration, we should ensure we have this kind of headers:

proxy_set_header        X-Real-IP       $remote_addr;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

See also T274.

Event Timeline

dereckson claimed this task.
dereckson raised the priority of this task from to Normal.
dereckson updated the task description. (Show Details)
dereckson added projects: Servers, Forum, DevCentral.
dereckson added a subscriber: dereckson.
dereckson removed dereckson as the assignee of this task.Mar 8 2018, 21:07

Proxy is fine for DevCentral and other Phabricator containers, per T915 / D484 / 892cd0a35934.