summaryrefslogtreecommitdiff
path: root/installation/pleroma.nginx
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-09-27 21:59:23 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2019-09-27 21:59:23 +0000
commit705ea1b975779180c15d7b32d22f7fb9a11b2ed9 (patch)
tree5bb67874c8b34ad13f25055938826475f38e2301 /installation/pleroma.nginx
parent92d08d4113c4de09cd8d736ed1a0349745866eef (diff)
parentf9380289eb251c818e87e8f0ad0a41fc8bdd90aa (diff)
downloadpleroma-705ea1b975779180c15d7b32d22f7fb9a11b2ed9.tar.gz
pleroma-705ea1b975779180c15d7b32d22f7fb9a11b2ed9.zip
Merge branch 'remote-ip' into 'develop'
Add `remote_ip` plug See merge request pleroma/pleroma!1608
Diffstat (limited to 'installation/pleroma.nginx')
-rw-r--r--installation/pleroma.nginx1
1 files changed, 1 insertions, 0 deletions
diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx
index 4da9918ca..7f48b614b 100644
--- a/installation/pleroma.nginx
+++ b/installation/pleroma.nginx
@@ -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