Skip to content

Commit

Permalink
Send X-Forwarded-For (#51)
Browse files Browse the repository at this point in the history
* send X-Forwarded-For

* send X-Forwarded-For
  • Loading branch information
james-otten authored Nov 18, 2024
1 parent e3aa033 commit 7167a2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/roles/k8s-lb/templates/haproxy.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ frontend meshdb
http-request redirect scheme https unless { ssl_fc } OR app_letsencrypt

backend k8s
# Send X-Forwarded-For
option forwardfor
# TCP health check
option tcp-check
# Nodes
{% for worker in WORKER_IPS.split(';') %}
server meshworker{{ loop.index }} {{ worker }}:{{ NODE_PORT }} check
{% endfor %}
Expand Down

0 comments on commit 7167a2f

Please sign in to comment.