linus
Funktioniert HTTP_X_FORWARDED_FOR nicht?
Und apropos realip. http_realip find ich jetzt auch nicht auf die schnelle aber
stream_realip ist mit drin. evtl. reicht dir das ja?
root@gromi:/etc/nginx# nginx -V |& grep configure\ arguments | tr ' ' '\n'
configure
arguments:
--prefix=/usr/
--sbin-path=/usr/sbin/nginx
--modules-path=/usr/lib64/nginx/modules
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--pid-path=/run/nginx.pid
--lock-path=/run/nginx.lock
--http-client-body-temp-path=/var/lib/nginx/tmp/
--http-proxy-temp-path=/var/lib/nginx/proxy/
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi/
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi/
--http-scgi-temp-path=/var/lib/nginx/scgi/
--user=nginx
--group=nginx
--without-select_module
--without-poll_module
--with-threads
--with-file-aio
--with-ipv6
--with-http_ssl_module
--with-http_v2_module
--with-http_realip_module
--with-http_addition_module
--with-http_xslt_module=dynamic
--with-http_image_filter_module=dynamic
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_mp4_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_auth_request_module
--with-http_random_index_module
--with-http_secure_link_module
--with-http_degradation_module
--with-http_slice_module
--with-http_stub_status_module
--with-http_perl_module=dynamic
--with-perl=/usr/bin/perl
--with-mail=dynamic
--with-mail_ssl_module
--with-stream=dynamic
--with-stream_ssl_module
--with-stream_realip_module <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
--with-stream_ssl_preread_module
--with-pcre
--with-pcre-jit
--with-cc-opt='-fmessage-length=0
-grecord-gcc-switches
-O2
-Wall
-D_FORTIFY_SOURCE=2
-fstack-protector-strong
-funwind-tables
-fasynchronous-unwind-tables
-fstack-clash-protection
-g
-fPIC
-D_GNU_SOURCE'
--with-ld-opt='-Wl,-z,relro,-z,now
-pie'
--with-compat
EDIT:
In meinem haproxy sieht das so aus.
backend gromi.clownflare.de
# health checking is DISABLED
mode http
balance source
# stickiness
stick-table type ip size 100k expire 20m
stick on src
timeout connect 10s
# WARNING: pass through options below this line
option forwardfor header X-Real-IP
http-request set-header X-Real-IP %[src]
http-reuse safe
option forwarded host by for
option forwardfor
server gromi gromi.clownflare.de:443 ssl alpn h2,http/1.1 verify none