mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 09:42:20 -04:00
Added a -w flag which will host the web client if specified. Currently this just delegates to the webclient RestServlet.
This commit is contained in:
parent
ebfc4389ad
commit
7f40fa1d46
5 changed files with 65 additions and 48 deletions
|
@ -126,6 +126,8 @@ def setup():
|
|||
parser.add_argument('--pid-file', dest="pid", help="When running as a "
|
||||
"daemon, the file to store the pid in",
|
||||
default="hs.pid")
|
||||
parser.add_argument("-w", "--webclient", dest="webclient",
|
||||
action="store_true", help="Host the web client.")
|
||||
args = parser.parse_args()
|
||||
|
||||
verbosity = int(args.verbose) if args.verbose else None
|
||||
|
@ -147,7 +149,7 @@ def setup():
|
|||
# the replication layer
|
||||
hs.get_federation()
|
||||
|
||||
hs.register_servlets()
|
||||
hs.register_servlets(host_web_client=args.webclient)
|
||||
|
||||
hs.get_http_server().start_listening(args.port)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue