From 8efae17ba10bb565009502c2ee1f3011f2ab30c9 Mon Sep 17 00:00:00 2001 From: Volkor Date: Fri, 29 Apr 2022 23:59:04 +1000 Subject: [PATCH] fix 403 --- conf.py.sample | 2 +- run.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.py.sample b/conf.py.sample index 0bfc18d..52b6815 100644 --- a/conf.py.sample +++ b/conf.py.sample @@ -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 diff --git a/run.py b/run.py index cdb855c..d38076a 100755 --- a/run.py +++ b/run.py @@ -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: