matrixsynapse: Show port forwarding info

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2019-05-11 15:58:53 -04:00 committed by Sunil Mohan Adapa
parent b2d5646291
commit a3adf134b9
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,8 @@ service = None
manual_page = 'MatrixSynapse'
port_forwarding_info = [('TCP', 8448)]
logger = logging.getLogger(__name__)
SERVER_NAME_PATH = "/etc/matrix-synapse/conf.d/server_name.yaml"

View File

@ -66,6 +66,7 @@ class MatrixSynapseServiceView(ServiceView):
description = matrixsynapse.description
diagnostics_module_name = 'matrixsynapse'
form_class = MatrixSynapseForm
port_forwarding_info = matrixsynapse.port_forwarding_info
def dispatch(self, request, *args, **kwargs):
"""Redirect to setup page if setup is not done yet."""