Skip to content
Discussion options

You must be logged in to vote

Hello,

ensure that Nginx is configured to set the X-Forwarded-For header.
Once that's in place, add the following environment variables:

SFTPGO_HTTPD__BINDINGS__0__CLIENT_IP_PROXY_HEADER=X-Forwarded-For
SFTPGO_HTTPD__BINDINGS__0__PROXY_ALLOWED=<nginx ip, the one you see now in your logs>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@no-systemd
Comment options

Answer selected by no-systemd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants