2022-06-07 09:16:43 +02:00
|
|
|
import os
|
|
|
|
from werkzeug.security import generate_password_hash
|
|
|
|
|
2022-06-07 21:44:57 +02:00
|
|
|
#CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/library")
|
|
|
|
CONTENT_BASE_DIR = os.getenv("CONTENT_BASE_DIR", "/home/drudoo/ComicsTest/Comics")
|
2022-06-07 09:16:43 +02:00
|
|
|
|
|
|
|
TEENYOPDS_ADMIN_PASSWORD = os.getenv("TEENYOPDS_ADMIN_PASSWORD", None)
|
|
|
|
users = {}
|
|
|
|
if TEENYOPDS_ADMIN_PASSWORD:
|
|
|
|
users = {
|
|
|
|
"admin": generate_password_hash(TEENYOPDS_ADMIN_PASSWORD),
|
|
|
|
}
|
|
|
|
else:
|
|
|
|
print(
|
|
|
|
"WANRNING: admin password not configured - catalog will be exposed was public"
|
|
|
|
)
|