Skip to content

Commit 27a2335

Browse files
authored
fix(bugs): properly reveal ip downstream (#407)
* fix(bugs): include fastly params for real ip * fix(bugs): marshal client ips from haproxy to nginx properly * chore: dont need that * chore: dont need that either i think * chore: dont need that either i think
1 parent 80869d1 commit 27a2335

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

salt/bugs/config/nginx.conf.jinja

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ server {
8383
server_name {{ server_name }};
8484
include mime.types;
8585

86+
set_real_ip_from {{ pillar["psf_internal_network"] }};
87+
real_ip_header X-Client-IP;
88+
8689
ssl_certificate /etc/ssl/private/bugs.psf.io.pem;
8790
ssl_certificate_key /etc/ssl/private/bugs.psf.io.pem;
8891

0 commit comments

Comments
 (0)