| @@ -743,6 +743,8 @@ matrix_bot_go_neb_systemd_required_services_list: | | |||||
| ['docker.service'] | ['docker.service'] | ||||
| }} | }} | ||||
| matrix_bot_go_neb_container_http_host_bind_port: "{{ '' if matrix_nginx_proxy_enabled else '127.0.0.1:4050' }}" | |||||
| ###################################################################### | ###################################################################### | ||||
| # | # | ||||
| # /matrix-bot-go-neb | # /matrix-bot-go-neb | ||||
| @@ -12,6 +12,11 @@ matrix_bot_go_neb_config_path_in_container: "/config/config.yaml" | |||||
| matrix_bot_go_neb_data_path: "{{ matrix_bot_go_neb_base_path }}/data" | matrix_bot_go_neb_data_path: "{{ matrix_bot_go_neb_base_path }}/data" | ||||
| matrix_bot_go_neb_data_store_path: "{{ matrix_bot_go_neb_data_path }}/store" | matrix_bot_go_neb_data_store_path: "{{ matrix_bot_go_neb_data_path }}/store" | ||||
| # Controls whether the matrix-bot-go-neb container exposes its HTTP port (tcp/4050 in the container). | |||||
| # | |||||
| # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:4050"), or empty string to not expose. | |||||
| matrix_bot_go_neb_container_http_host_bind_port: '' | |||||
| # A list of extra arguments to pass to the container | # A list of extra arguments to pass to the container | ||||
| matrix_bot_go_neb_container_extra_arguments: [] | matrix_bot_go_neb_container_extra_arguments: [] | ||||
| @@ -22,6 +22,9 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-bot-go-neb \ | |||||
| --cap-drop=ALL \ | --cap-drop=ALL \ | ||||
| --read-only \ | --read-only \ | ||||
| --network={{ matrix_docker_network }} \ | --network={{ matrix_docker_network }} \ | ||||
| {% if matrix_bot_go_neb_container_http_host_bind_port %} | |||||
| -p {{ matrix_bot_go_neb_container_http_host_bind_port }}:4050 \ | |||||
| {% endif %} | |||||
| -e 'BIND_ADDRESS=:4050' \ | -e 'BIND_ADDRESS=:4050' \ | ||||
| -e 'DATABASE_TYPE={{ matrix_bot_go_neb_database_engine }}' \ | -e 'DATABASE_TYPE={{ matrix_bot_go_neb_database_engine }}' \ | ||||
| -e 'BASE_URL=https://{{ matrix_server_fqn_bot_go_neb }}' \ | -e 'BASE_URL=https://{{ matrix_server_fqn_bot_go_neb }}' \ | ||||