diff --git a/.gitignore b/.gitignore index bb5e546..e402fc8 100644 --- a/.gitignore +++ b/.gitignore @@ -132,3 +132,4 @@ dmypy.json uploadkeys savelog.log uwsgi.log +settings.py diff --git a/imgupload.py b/imgupload.py index b877f0a..968112f 100644 --- a/imgupload.py +++ b/imgupload.py @@ -53,8 +53,6 @@ def upload(): validkeys = [x.strip("\n") for x in validkeys] while "" in validkeys: validkeys.remove("") - print("removed blank key") - print("Valid keys: {0}".format(validkeys)) print("Loaded validkeys") if "uploadKey" in request.form: # if an uploadKey was provided diff --git a/settings.py b/settings.py.default similarity index 72% rename from settings.py rename to settings.py.default index 55be603..5149189 100644 --- a/settings.py +++ b/settings.py.default @@ -1,6 +1,6 @@ -UPLOAD_FOLDER = "/var/www/img" +UPLOAD_FOLDER = "/path/to/images" ALLOWED_EXTENSIONS = [".png", ".jpg", ".jpeg", ".svg", ".bmp", ".gif", ".ico", ".webp"] -ROOTURL = "https://img.bbaovanc.com/" +ROOTURL = "https://example.com/" SAVELOG = "savelog.log" SAVELOG_CHMOD = 0o644 UPLOADKEYS_CHMOD = 0o600