Procházet zdrojové kódy

Synapse workers should respect X-Forwarded headers

Currently, Synapse workers ignore the X-Forwarded headers, which leads to internal Docker IP addresses randomly appearing in the users' device list.

This adds the `x_forwarded: true` option to the worker config, fixing the issue.
pull/1886/head
David Mehren před 4 roky
rodič
revize
f6a73231ab
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 185982BA4C42B7C3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. +1
    -0
      roles/matrix-synapse/templates/synapse/worker.yaml.j2

+ 1
- 0
roles/matrix-synapse/templates/synapse/worker.yaml.j2 Zobrazit soubor

@@ -26,6 +26,7 @@ worker_listeners:
{% if http_resources|length > 0 %} {% if http_resources|length > 0 %}
- type: http - type: http
bind_addresses: ['::'] bind_addresses: ['::']
x_forwarded: true
port: {{ matrix_synapse_worker_details.port }} port: {{ matrix_synapse_worker_details.port }}
resources: resources:
- names: {{ http_resources|to_json }} - names: {{ http_resources|to_json }}


Načítá se…
Zrušit
Uložit