Update FileStream/config.py
Browse files- FileStream/config.py +5 -3
FileStream/config.py
CHANGED
@@ -21,6 +21,10 @@ class Telegram:
|
|
21 |
MODE = env.get("MODE", "primary")
|
22 |
SECONDARY = True if MODE.lower() == "secondary" else False
|
23 |
AUTH_USERS = list(set(int(x) for x in str(env.get("AUTH_USERS", "")).split()))
|
|
|
|
|
|
|
|
|
24 |
|
25 |
class Server:
|
26 |
PORT = int(7860)
|
@@ -32,6 +36,4 @@ class Server:
|
|
32 |
URL = "http{}://{}{}/".format(
|
33 |
"s" if HAS_SSL else "", FQDN, "" if NO_PORT else ":" + str(PORT)
|
34 |
)
|
35 |
-
KEEP_ALIVE = str(env.get("KEEP_ALIVE", "0").lower()) in ("1", "true", "t", "yes", "y")
|
36 |
-
|
37 |
-
|
|
|
21 |
MODE = env.get("MODE", "primary")
|
22 |
SECONDARY = True if MODE.lower() == "secondary" else False
|
23 |
AUTH_USERS = list(set(int(x) for x in str(env.get("AUTH_USERS", "")).split()))
|
24 |
+
|
25 |
+
# New additions for logging and file storing channels
|
26 |
+
LOGGING_CHANNEL = str(env.get('LOGGING_CHANNEL', 'LOGGINGZ'))
|
27 |
+
FILE_STORE_CHANNEL = str(env.get('FILE_STORE_CHANNEL', 'LOGGINGX'))
|
28 |
|
29 |
class Server:
|
30 |
PORT = int(7860)
|
|
|
36 |
URL = "http{}://{}{}/".format(
|
37 |
"s" if HAS_SSL else "", FQDN, "" if NO_PORT else ":" + str(PORT)
|
38 |
)
|
39 |
+
KEEP_ALIVE = str(env.get("KEEP_ALIVE", "0").lower()) in ("1", "true", "t", "yes", "y")
|
|
|
|