|
|
|
@@ -372,6 +372,16 @@ server { |
|
|
|
{% endfor %} |
|
|
|
# FIXME: add GET ^/_matrix/federation/v1/groups/ |
|
|
|
{% endif %} |
|
|
|
{% if media_repository_workers %} |
|
|
|
# https://github.com/matrix-org/synapse/blob/master/docs/workers.md#synapseappmedia_repository |
|
|
|
{% for location in matrix_nginx_proxy_synapse_media_repository_locations %} |
|
|
|
location ~ {{ location }} { |
|
|
|
proxy_pass http://media_repository_upstream$request_uri; |
|
|
|
proxy_set_header Host $host; |
|
|
|
proxy_set_header X-Forwarded-For $remote_addr; |
|
|
|
} |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
location / { |
|
|
|
|