proxy_protocol on short url visit remote_addr is 127.0.0.1? #1893
Answered
by
sosojustdo
sosojustdo
asked this question in
Help wanted
-
Shlink version3.2.1 PHP version8.1.10 How do you serve ShlinkSelf-hosted nginx Database engineMySQL Database version5.7.32 Current behaviorI have used nginx proxy_protocol, please see nginx.conf
|
Beta Was this translation helpful? Give feedback.
Answered by
sosojustdo
Oct 10, 2023
Replies: 1 comment
-
I have resolved the problem fastcgi_param REMOTE_ADDR $proxy_protocol_addr; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
acelaya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have resolved the problem
location ~ .php$ {} block add fastcgi_param, and set REMOTE_ADDR、HTTP_X_FORWARDED_FOR
fastcgi_param REMOTE_ADDR $proxy_protocol_addr;
fastcgi_param HTTP_X_FORWARDED_FOR $proxy_protocol_addr;