Explorar el Código

Add `matrix_appservice_irc_container_expose_client_server_api_port`

pull/87/head
Plailect hace 7 años
padre
commit
5e1d96c727
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: F8A415C5EA602A41
Se han modificado 3 ficheros con 15 adiciones y 0 borrados
  1. +10
    -0
      group_vars/matrix-servers
  2. +3
    -0
      roles/matrix-synapse/defaults/main.yml
  3. +2
    -0
      roles/matrix-synapse/templates/ext/appservice-irc/systemd/matrix-appservice-irc.service.j2

+ 10
- 0
group_vars/matrix-servers Ver fichero

@@ -9,6 +9,16 @@
# You can also override ANY variable (seen here or in any given role), # You can also override ANY variable (seen here or in any given role),
# by re-defining it in your own configuration file (`inventory/host_vars/matrix.<your-domain>`). # by re-defining it in your own configuration file (`inventory/host_vars/matrix.<your-domain>`).


######################################################################
#
# matrix-appservice-irc
#
######################################################################

# Normally, matrix-nginx-proxy is enabled and nginx can reach matrix-appservice-irc over the container network.
# If matrix-nginx-proxy is not enabled, or you otherwise have a need for it, you can expose
# matrix-appservice-irc's client-server port to the local host (`127.0.0.1:9999`).
matrix_appservice_irc_container_expose_client_server_api_port: "{{ not matrix_nginx_proxy_enabled }}"


###################################################################### ######################################################################
# #


+ 3
- 0
roles/matrix-synapse/defaults/main.yml Ver fichero

@@ -10,6 +10,9 @@ matrix_synapse_ext_path: "{{ matrix_synapse_base_path }}/ext"
# Controls whether the Synapse container exposes the Client/Server API port (tcp/8008). # Controls whether the Synapse container exposes the Client/Server API port (tcp/8008).
matrix_synapse_container_expose_client_server_api_port: false matrix_synapse_container_expose_client_server_api_port: false


# Controls whether the Appservice IRC container exposes the Client/Server API port (tcp/9999).
matrix_appservice_irc_container_expose_client_server_api_port: false

# List of systemd services that matrix-synapse.service depends on # List of systemd services that matrix-synapse.service depends on
matrix_synapse_systemd_required_services_list: ['docker.service'] matrix_synapse_systemd_required_services_list: ['docker.service']




+ 2
- 0
roles/matrix-synapse/templates/ext/appservice-irc/systemd/matrix-appservice-irc.service.j2 Ver fichero

@@ -13,7 +13,9 @@ ExecStart=/usr/bin/docker run --rm --name matrix-appservice-irc \
--log-driver=none \ --log-driver=none \
-e "UID={{ matrix_user_uid }}" -e "GID={{ matrix_user_gid }}" \ -e "UID={{ matrix_user_uid }}" -e "GID={{ matrix_user_gid }}" \
--network={{ matrix_docker_network }} \ --network={{ matrix_docker_network }} \
{% if matrix_appservice_irc_container_expose_client_server_api_port %}
-p 127.0.0.1:9999:9999 \ -p 127.0.0.1:9999:9999 \
{% endif %}
-v {{ matrix_appservice_irc_base_path }}:/data:z \ -v {{ matrix_appservice_irc_base_path }}:/data:z \
{{ matrix_appservice_irc_docker_image }} \ {{ matrix_appservice_irc_docker_image }} \
-c /data/config.yaml -f /data/registration.yaml -p 9999 -c /data/config.yaml -f /data/registration.yaml -p 9999


Cargando…
Cancelar
Guardar