diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-09-01 22:38:52 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-09-01 22:38:52 +0100 |
commit | 399e0048840ff322091508c02d1877e259973806 (patch) | |
tree | ba7fb3f14d98e829586e56bbc133353f016dc883 /synapse/config/server.py | |
parent | enable ECDHE ciphers (diff) | |
download | synapse-399e0048840ff322091508c02d1877e259973806.tar.xz |
Add unsecure listener port to homeserver
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 2c80be71b3..1f20d55d8f 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -26,6 +26,7 @@ class ServerConfig(Config): self.signing_key = self.read_signing_key(args.signing_key_path) self.bind_port = args.bind_port self.bind_host = args.bind_host + self.unsecure_port = args.unsecure_port self.daemonize = args.daemonize self.pid_file = self.abspath(args.pid_file) self.webclient = args.no_webclient @@ -39,8 +40,10 @@ class ServerConfig(Config): help="The name of the server") server_group.add_argument("--signing-key-path", help="The signing key to sign messages with") - server_group.add_argument("-p", "--bind-port", metavar="PORT", type=int, - help="TCP port to listen on") + server_group.add_argument("-p", "--bind-port", metavar="PORT", + type=int, help="https port to listen on") + server_group.add_argument("--unsecure-port", metavar="PORT", + type=int, help="http port to listen on") server_group.add_argument("--bind-host", default="", help="Local interface to listen on") server_group.add_argument("-D", "--daemonize", action='store_true', |