Prefix environment variables with TAUTULLI_

For: https://github.com/Tautulli/Tautulli/issues/2309
This commit is contained in:
komuw 2025-05-10 21:18:02 +03:00
commit 4610bf3769

View file

@ -501,7 +501,8 @@ class Config(object):
def _from_env(self, key, definition_type): def _from_env(self, key, definition_type):
""" Get key from environment variables, if it exists """ """ Get key from environment variables, if it exists """
val = os.environ.get(key) env_key = "TAUTULLI_" + key
val = os.environ.get(env_key)
try: try:
if val: if val:
return definition_type(val) return definition_type(val)