Nginx proxy replaces domain with client ip

Im using a nginx proxy which redirects the gitlab domain to another server in my network, however since i added the realip option in the gitlab.rb config, it replaces the domain on opening with the client ip.

Is this a known issue / did i do something wrong?

Config:

nginx proxy:

proxy_set_header  Host $host;
proxy_set_header  X-Real-IP $remote_addr;
proxy_set_header  X-Forwarded-Proto https;
proxy_set_header  X-Forwarded-For $remote_addr;
proxy_set_header  X-Forwarded-Host $remote_addr;
include proxy.conf;
proxy_pass http://192.168.0.51:80/;

gitlab.rb:

nginx['real_ip_trusted_addresses'] = ['192.168.0.2/32'] nginx['real_ip_header'] = 'X-Real-IP' nginx['real_ip_recursive'] = 'on'

Assignee Loading
Time tracking Loading