mirror of
https://gitlab.com/octospacc/TelegramIndex-Fork.git
synced 2025-02-16 11:31:44 +01:00
🐛 Fixed username bug
This commit is contained in:
parent
ffb719613c
commit
dc5988ce8d
@ -44,10 +44,12 @@ host = os.environ.get("HOST", "0.0.0.0")
|
|||||||
debug = bool(os.environ.get("DEBUG"))
|
debug = bool(os.environ.get("DEBUG"))
|
||||||
block_downloads = bool(os.environ.get("BLOCK_DOWNLOADS"))
|
block_downloads = bool(os.environ.get("BLOCK_DOWNLOADS"))
|
||||||
results_per_page = int(os.environ.get("RESULTS_PER_PAGE", "20"))
|
results_per_page = int(os.environ.get("RESULTS_PER_PAGE", "20"))
|
||||||
logo_folder = Path("/Temp/logo/" if platform.system() == "Windows" else "/tmp/logo")
|
logo_folder = Path("./Temp/logo/" if platform.system() == "Windows" else "/tmp/logo")
|
||||||
logo_folder.mkdir(exist_ok=True)
|
if not logo_folder.exists():
|
||||||
username = os.environ.get("USERNAME", "")
|
logo_folder.mkdir(parents=True)
|
||||||
|
username = os.environ.get("TGINDEX_USERNAME", "")
|
||||||
password = os.environ.get("PASSWORD", "")
|
password = os.environ.get("PASSWORD", "")
|
||||||
|
SHORT_URL_LEN = 3
|
||||||
authenticated = username and password
|
authenticated = username and password
|
||||||
SESSION_COOKIE_LIFETIME = int(os.environ.get("SESSION_COOKIE_LIFETIME") or "60")
|
SESSION_COOKIE_LIFETIME = int(os.environ.get("SESSION_COOKIE_LIFETIME") or "60")
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user