Skip to content

Commit

Permalink
Make use of matrix_bot_maubot_management_interface_port variable to a…
Browse files Browse the repository at this point in the history
…ctually make maubot port configurable

Related to #1894
  • Loading branch information
spantaleev committed Jul 20, 2022
1 parent 8a68981 commit 90551e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/matrix-bot-maubot/tasks/init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% if matrix_nginx_proxy_enabled | default(False) %}
{# Use the embedded DNS resolver in Docker containers to discover the service #}
resolver 127.0.0.11 valid=5s;
set $backend "matrix-bot-maubot:29316/$1";
set $backend "matrix-bot-maubot:{{ matrix_bot_maubot_management_interface_port }}/$1";
proxy_pass http://$backend;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
Expand Down
2 changes: 1 addition & 1 deletion roles/matrix-bot-maubot/templates/config/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ plugin_databases:
server:
# The IP and port to listen to.
hostname: 0.0.0.0
port: 29316
port: {{ matrix_bot_maubot_management_interface_port|to_json }}
# Public base URL where the server is visible.
public_url: {{ matrix_bot_maubot_bot_server_public_url|to_json }}
# The base management API path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-bot-maubot \
{% endfor %}
--network={{ matrix_docker_network }} \
{% if matrix_bot_maubot_management_interface_http_bind_port %}
-p {{ matrix_bot_maubot_management_interface_http_bind_port }}:29316
-p {{ matrix_bot_maubot_management_interface_http_bind_port }}:{{ matrix_bot_maubot_management_interface_port }}
{% endif %}
{{ matrix_bot_maubot_docker_image }} \
python3 -m maubot -c /config/config.yaml
Expand Down

0 comments on commit 90551e8

Please sign in to comment.