Просмотр исходного кода

Add `matrix_client_element_environment_variable_element_web_port` and `matrix_client_element_environment_variables_extension` variables

pull/4163/head
Slavi Pantaleev 11 месяцев назад
Родитель
Сommit
a5d850d800
2 измененных файлов: 15 добавлений и 1 удалений
  1. +12
    -0
      roles/custom/matrix-client-element/defaults/main.yml
  2. +3
    -1
      roles/custom/matrix-client-element/templates/env.j2

+ 12
- 0
roles/custom/matrix-client-element/defaults/main.yml Просмотреть файл

@@ -349,3 +349,15 @@ matrix_client_element_location_sharing_map_style_content_sources_localsource_att
# Optional URL to redirect the user to after they have logged out. # Optional URL to redirect the user to after they have logged out.
# See https://github.com/element-hq/element-web/blob/develop/docs/config.md#sso-setup # See https://github.com/element-hq/element-web/blob/develop/docs/config.md#sso-setup
matrix_client_element_logout_redirect_url: '' matrix_client_element_logout_redirect_url: ''

# Controls the `ELEMENT_WEB_PORT` environment variable.
matrix_client_element_environment_variable_element_web_port: "{{ matrix_client_element_container_port }}"

# Additional environment variables to pass to the container.
#
# Environment variables take priority over settings in the configuration file.
#
# Example:
# matrix_client_element_environment_variables_extension: |
# ELEMENT_WEB_PORT=8080
matrix_client_element_environment_variables_extension: ''

+ 3
- 1
roles/custom/matrix-client-element/templates/env.j2 Просмотреть файл

@@ -1 +1,3 @@
ELEMENT_WEB_PORT={{ matrix_client_element_container_port }}
ELEMENT_WEB_PORT={{ matrix_client_element_environment_variable_element_web_port }}

{{ matrix_client_element_environment_variables_extension }}

Загрузка…
Отмена
Сохранить