Skip to content

Commit

Permalink
refactor: forward the X-Real-IP header
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox authored Nov 14, 2024
1 parent 5bcecc0 commit 986701a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ooniapi/services/reverseproxy/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ server {
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $http_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
}

0 comments on commit 986701a

Please sign in to comment.