From 98bcce60e3ce6ed1b414b38352e82470a164f5a8 Mon Sep 17 00:00:00 2001 From: Samuel Sloniker Date: Sat, 10 Jul 2021 14:50:31 -0700 Subject: [PATCH] Add port config --- server/conf.txt | 4 ++++ server/wss.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 server/conf.txt diff --git a/server/conf.txt b/server/conf.txt new file mode 100644 index 0000000..8d306b1 --- /dev/null +++ b/server/conf.txt @@ -0,0 +1,4 @@ +backend x11 +display :1 +port 1234 +password_argon2 $argon2id$v=19$m=102400,t=2,p=8$NExqSUh+0wzBznBG9jM6ww$MkaPLZ6WPAegb8BI+IL7Bg diff --git a/server/wss.py b/server/wss.py index ea09bd1..53d2650 100644 --- a/server/wss.py +++ b/server/wss.py @@ -212,7 +212,7 @@ try: (r"/", HCRAServer), ('/' + token, Cycler), ]) - application.listen(1234) + application.listen(int(config['port'])) threading.Thread(target=get_token).start() tornado.ioloop.IOLoop.current().start() finally: