Ignore settings.py and add settings.py.default

This commit is contained in:
BBaoVanC 2020-08-31 18:48:22 -05:00
parent e6dcb814fb
commit 4b624f3fed
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View File

@ -132,3 +132,4 @@ dmypy.json
uploadkeys
savelog.log
uwsgi.log
settings.py

View File

@ -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

View File

@ -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