Преглед изворни кода

fix hookshot provisioning url in nginx

Hello, this PR should fix Hookshot container not receiving API calls with the right path because nginx proxy was stripping the /v1 from it.
pull/1674/head
Luis пре 4 година
committed by GitHub
родитељ
комит
584e50d117
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      roles/matrix-bridge-hookshot/tasks/init.yml

+ 2
- 2
roles/matrix-bridge-hookshot/tasks/init.yml Прегледај датотеку

@@ -55,10 +55,10 @@
{# Use the embedded DNS resolver in Docker containers to discover the service #}
resolver 127.0.0.11 valid=5s;
set $backend "{{ matrix_hookshot_container_url }}:{{ matrix_hookshot_provisioning_port }}";
proxy_pass http://$backend/$1;
proxy_pass http://$backend/v1/$1;
{% else %}
{# Generic configuration for use outside of our container setup #}
proxy_pass http://127.0.0.1:{{ matrix_hookshot_provisioning_port }}/$1;
proxy_pass http://127.0.0.1:{{ matrix_hookshot_provisioning_port }}/v1/$1;
{% endif %}
proxy_set_header Host $host;
}


Loading…
Откажи
Сачувај