chg: [websocket server] add host and port config

This commit is contained in:
Terrtia 2022-05-10 11:14:29 +02:00
parent bbff018fdb
commit 1dfa796dca
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
2 changed files with 10 additions and 3 deletions

View file

@ -17,6 +17,12 @@ sys.path.append(os.environ['AIL_BIN'])
##################################
from pubsublogger import publisher
from core import ail_2_ail
from lib.ConfigLoader import ConfigLoader
config_loader = ConfigLoader()
host = config_loader.get_config_str('AIL_2_AIL', 'server_host')
port = config_loader.get_config_int('AIL_2_AIL', 'server_port')
config_loader = None
# # TODO: refactor logging
#### LOGS ####
@ -303,9 +309,6 @@ class AIL_2_AIL_Protocol(websockets.WebSocketServerProtocol):
if __name__ == '__main__':
host = '0.0.0.0'
port = 4443
print('Launching Server...')
redis_logger.info('Launching Server...')

View file

@ -57,6 +57,10 @@ minute_processed_paste = 10
#Maximum line length authorized to make a diff between duplicates
DiffMaxLineLength = 10000
[AIL_2_AIL]
server_host = 0.0.0.0
server_port = 4443
#### Modules ####
[BankAccount]
max_execution_time = 60