mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-02-16 22:36:25 +00:00
chg: [websocket server] add host and port config
This commit is contained in:
parent
bbff018fdb
commit
1dfa796dca
2 changed files with 10 additions and 3 deletions
|
@ -17,6 +17,12 @@ sys.path.append(os.environ['AIL_BIN'])
|
||||||
##################################
|
##################################
|
||||||
from pubsublogger import publisher
|
from pubsublogger import publisher
|
||||||
from core import ail_2_ail
|
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
|
# # TODO: refactor logging
|
||||||
#### LOGS ####
|
#### LOGS ####
|
||||||
|
@ -303,9 +309,6 @@ class AIL_2_AIL_Protocol(websockets.WebSocketServerProtocol):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
host = '0.0.0.0'
|
|
||||||
port = 4443
|
|
||||||
|
|
||||||
print('Launching Server...')
|
print('Launching Server...')
|
||||||
redis_logger.info('Launching Server...')
|
redis_logger.info('Launching Server...')
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,10 @@ minute_processed_paste = 10
|
||||||
#Maximum line length authorized to make a diff between duplicates
|
#Maximum line length authorized to make a diff between duplicates
|
||||||
DiffMaxLineLength = 10000
|
DiffMaxLineLength = 10000
|
||||||
|
|
||||||
|
[AIL_2_AIL]
|
||||||
|
server_host = 0.0.0.0
|
||||||
|
server_port = 4443
|
||||||
|
|
||||||
#### Modules ####
|
#### Modules ####
|
||||||
[BankAccount]
|
[BankAccount]
|
||||||
max_execution_time = 60
|
max_execution_time = 60
|
||||||
|
|
Loading…
Add table
Reference in a new issue