Skip to content

Commit

Permalink
fix(prod): get real IP [no ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 20, 2024
1 parent 33a7e15 commit 99a72da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions epivar-prod/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ http {

#gzip on;

# Added by David L 2023-10-02
# - Ensures we get correct external IP information within vhost38
real_ip_header X-Forwarded-For;
set_real_ip_from 10.219.38.3/24;

# Maps taken from https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/

map $remote_addr $proxy_forwarded_elem {
Expand Down

0 comments on commit 99a72da

Please sign in to comment.