BBaoVanC
a5a22b7c88
Since keygen.py is run as root, uploadkeys is owned by root. This causes issues when imgupload.py tries to chmod the uploadkeys file since it doesn't have permissions to chmod it. Solution: remove UPLOADKEYS_CHMOD option
8 lines
251 B
Plaintext
8 lines
251 B
Plaintext
UPLOAD_FOLDER = "/path/to/images"
|
|
ALLOWED_EXTENSIONS = [".png", ".jpg", ".jpeg", ".svg", ".bmp", ".gif", ".ico", ".webp"]
|
|
ROOTURL = "https://example.com/"
|
|
SAVELOG = "savelog.log"
|
|
SAVELOG_CHMOD = 0o644
|
|
SAVELOG_KEYPREFIX = 4
|
|
ENCKEY_PATH = "secret.key"
|