Add port config

This commit is contained in:
Samuel Sloniker 2021-07-10 14:50:31 -07:00
parent 9dc8030d86
commit 98bcce60e3
2 changed files with 5 additions and 1 deletions

4
server/conf.txt Normal file
View File

@ -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

View File

@ -212,7 +212,7 @@ try:
(r"/", HCRAServer), (r"/", HCRAServer),
('/' + token, Cycler), ('/' + token, Cycler),
]) ])
application.listen(1234) application.listen(int(config['port']))
threading.Thread(target=get_token).start() threading.Thread(target=get_token).start()
tornado.ioloop.IOLoop.current().start() tornado.ioloop.IOLoop.current().start()
finally: finally: