mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 14:21:19 +00:00
Add IP forwarding headers to nginx config (fixes #1318)
This commit is contained in:
parent
cb9a06e249
commit
998e824bd8
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ server {
|
||||||
proxy_pass $proxpass;
|
proxy_pass $proxpass;
|
||||||
|
|
||||||
rewrite ^(.+)/+$ $1 permanent;
|
rewrite ^(.+)/+$ $1 permanent;
|
||||||
|
|
||||||
|
# Send actual client IP upstream
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
}
|
}
|
||||||
|
|
||||||
# backend
|
# backend
|
||||||
|
|
Loading…
Reference in a new issue