Add remote_ip plug

This commit is contained in:
minibikini 2019-09-27 21:59:23 +00:00 committed by Haelwenn
commit f9380289eb
10 changed files with 187 additions and 4 deletions

View file

@ -70,6 +70,7 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only
# and `localhost.` resolves to [::0] on some systems: see issue #930