permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit e33d093e683bdc93a3b119b8a53fae3d30da783f
parent 702ec914427155727a174aa53f35a74b0dd7803d
Author: ugrnm <ugrnm@web>
Date:   Wed, 25 Nov 2026 21:14:49 +0100

pass IP user related header to rauthy

Diffstat:
Meik.mdwn | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/eik.mdwn b/eik.mdwn @@ -305,13 +305,20 @@ Here's an example `nginx` configuration. proxy_set_header Content-Length ""; proxy_set_header Connection ""; proxy_pass_request_body off; - + + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass http://rauthy/auth/v1/clients/<YOUR-CLIENT-ID>/forward_auth; } location = /callback { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $http_host; + + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Real-IP $remote_addr; + proxy_pass http://rauthy/auth/v1/clients/<YOUR-CLIENT-ID>/forward_auth/callback?$args; }