Added HTTP control stuff
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,3 +12,6 @@ class Config:
|
||||
PROGRAM_URL = os.environ["PROGRAM_URL"]
|
||||
DRY_RUN = ('--dry-run' in sys.argv) or bool(os.environ.get("DRY_RUN", False))
|
||||
DEBUG = ('--debug' in sys.argv) or bool(os.environ.get("DEBUG", False))
|
||||
HTTP_ENABLE = ('--no-http' not in sys.argv) and \
|
||||
bool(os.environ.get("HTTP_ENABLE", "").upper() not in ['NO', 'FALSE', '0'])
|
||||
HTTP_PORT = int(os.environ.get("HTTP_PORT", 8080))
|
||||
|
||||
Reference in New Issue
Block a user