mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
matrixsynapse: Add firewall rules to open port 8448
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
2cde913215
commit
8b4cacd682
@ -52,7 +52,7 @@ def subcommand_post_install(_):
|
||||
with open(file_path) as config_file:
|
||||
config = round_trip_load(config_file)
|
||||
|
||||
config["no_tls"] = True
|
||||
config["listeners"][0]["bind_address"] = "0.0.0.0"
|
||||
config["listeners"][1]["bind_address"] = "127.0.0.1"
|
||||
config["max_upload_size"] = "100M"
|
||||
config["enable_registration"] = True
|
||||
@ -65,16 +65,19 @@ def subcommand_setup(arguments):
|
||||
domain_name = arguments.domain_name
|
||||
action_utils.dpkg_reconfigure('matrix-synapse',
|
||||
{'server-name': domain_name})
|
||||
action_utils.webserver_enable('matrixsynapse')
|
||||
|
||||
|
||||
def subcommand_enable(_):
|
||||
"""Enable service"""
|
||||
action_utils.webserver_enable('matrixsynapse')
|
||||
action_utils.service_enable('matrix-synapse')
|
||||
|
||||
|
||||
def subcommand_disable(_):
|
||||
"""Disable service"""
|
||||
action_utils.service_disable('matrix-synapse')
|
||||
action_utils.webserver_disable('matrixsynapse')
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<service>
|
||||
<short>Matrix Synapse</short>
|
||||
<description>Matrix is a Federated IM, VoIP and Video server</description>
|
||||
<port protocol="tcp" port="8448"/>
|
||||
</service>
|
||||
@ -85,7 +85,7 @@ def setup(helper, old_version=None):
|
||||
if service is None:
|
||||
service = service_module.Service(
|
||||
'matrix-synapse', title,
|
||||
ports=['matrix-synapse'],
|
||||
ports=['matrix-synapse-plinth'],
|
||||
is_external=True, is_enabled=is_enabled, enable=enable,
|
||||
disable=disable)
|
||||
helper.call('post', actions.superuser_run, 'matrixsynapse',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user