mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 20:57:41 +01:00
Turn off IPv6 when using your own Nginx server
Docker apparently doesn't like IPv6.
This commit is contained in:
parent
52d5e540c0
commit
58ca2e7dfd
@ -110,6 +110,7 @@ server {
|
|||||||
{% else %}
|
{% else %}
|
||||||
{# Generic configuration for use outside of our container setup #}
|
{# Generic configuration for use outside of our container setup #}
|
||||||
proxy_pass http://{{ matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container }};
|
proxy_pass http://{{ matrix_nginx_proxy_proxy_matrix_client_api_addr_sans_container }};
|
||||||
|
resolver 127.0.0.1 ipv6=off;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
@ -144,9 +144,7 @@ listeners:
|
|||||||
# On Linux and Mac OS, `::` will listen on all IPv4 and IPv6
|
# On Linux and Mac OS, `::` will listen on all IPv4 and IPv6
|
||||||
# addresses by default. For most other OSes, this will only listen
|
# addresses by default. For most other OSes, this will only listen
|
||||||
# on IPv6.
|
# on IPv6.
|
||||||
bind_addresses:
|
bind_addresses: ['::']
|
||||||
- '::'
|
|
||||||
- '0.0.0.0'
|
|
||||||
|
|
||||||
# This is a 'http' listener, allows us to specify 'resources'.
|
# This is a 'http' listener, allows us to specify 'resources'.
|
||||||
type: http
|
type: http
|
||||||
@ -174,7 +172,7 @@ listeners:
|
|||||||
# For when matrix traffic passes through loadbalancer that unwraps TLS.
|
# For when matrix traffic passes through loadbalancer that unwraps TLS.
|
||||||
- port: 8008
|
- port: 8008
|
||||||
tls: false
|
tls: false
|
||||||
bind_addresses: ['::', '0.0.0.0']
|
bind_addresses: ['::']
|
||||||
type: http
|
type: http
|
||||||
|
|
||||||
x_forwarded: true
|
x_forwarded: true
|
||||||
|
Loading…
Reference in New Issue
Block a user