mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 18:35:12 +00:00
Refactor project structure
This commit is contained in:
1
lib/tfw/config/__init__.py
Normal file
1
lib/tfw/config/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .envvars import *
|
14
lib/tfw/config/envvars.py
Normal file
14
lib/tfw/config/envvars.py
Normal file
@ -0,0 +1,14 @@
|
||||
import os
|
||||
|
||||
PUBLISHER_PORT = os.getenv('PUBLISHER_PORT', 7654)
|
||||
RECEIVER_PORT = os.getenv('RECEIVER_PORT', 8765)
|
||||
WEB_PORT = os.getenv('TFW_WEB_PORT', 4242)
|
||||
SUPERVISOR_HTTP_PORT = os.getenv('TFW_SUPERVISOR_PORT', 9001)
|
||||
LOGIN_APP_PORT = os.getenv('TFW_LOGIN_APP_PORT', 6666)
|
||||
TERMINADO_PORT = os.getenv('TFW_TERMINADO_PORT', 9999)
|
||||
TERMINADO_WD = os.getenv('TFW_TERMINADO_WD')
|
||||
|
||||
SUPERVISOR_HTTP_URI = 'http://localhost:{}'.format(SUPERVISOR_HTTP_PORT)
|
||||
|
||||
LOGIN_APP_DIR = os.getenv('TFW_LOGIN_APP_DIR')
|
||||
TERMINADO_DIR = os.getenv('TFW_TERMINADO_DIR')
|
3
lib/tfw/config/logs.py
Normal file
3
lib/tfw/config/logs.py
Normal file
@ -0,0 +1,3 @@
|
||||
import logging
|
||||
|
||||
logging.basicConfig(level=logging.CRITICAL)
|
Reference in New Issue
Block a user