master
Volkor 7 months ago
parent 66884642ce
commit 8efae17ba1
No known key found for this signature in database
GPG Key ID: BAD7CA8A81CC2DA5
  1. 2
      conf.py.sample
  2. 2
      run.py

@ -56,7 +56,7 @@ config["CLEAN_INTERVAL"] = 120
# If set to true, the TIME setting above doesn't matter.
## MINDAYS is the minimum lifetime of the file. (The smaller the file, the closer to MAXDAYS it is.)
## Default, seemingly sane defaults are really small files expire after a ~year, thicc files delete after ~5 days.
config["USE_0x0_DELETION"] = False
config["USE_0x0_DELETION"] = True
config["MAX_FILESIZE"] = 512 * 1024 * 1024
config["MINDAYS"] = 5
config["MAXDAYS"] = 365

@ -429,7 +429,7 @@ def nginx_error(error):
if error == 413:
return error_page(error="The file you uploaded was too large for the server to handle.", code=413), 413
elif error == 403: # Block IPs with your web server and return /error/403 for this page
return error_page(error="Sorry, the IP you're using has been blocked due to excessive abuse", code=403), 403
return error_page(error="Permission Denied - No snooping allowed thanks :)", code=403), 403
elif error == 404:
return error_page(error="We couldn't find that. Are you sure you know what you're looking for?", code=404), 404
elif error == 418:

Loading…
Cancel
Save