Add config option for max file size info

This commit is contained in:
quad 2016-03-11 17:06:37 +01:00
parent 0700d66d70
commit bf825f8ffd
2 changed files with 5 additions and 2 deletions

View File

@ -34,5 +34,6 @@ config["CLEAN_INTERVAL"] = 120
# Site info displayed to the user
config["SITE_DATA"] = {
"title": "QuadFile"
"title": "QuadFile",
"size": "100 MiB" # This is only for display, please limit filesizes using your web server
}

View File

@ -3,7 +3,9 @@
<h1 id="limits">Terms</h1>
<ul>
<li><strong>You</strong> are responsible for the file you upload</li>
<li>The max file size is <strong>100 MiB</strong></li>
{% if page.size is defined %}
<li>The max file size is <strong>{{ page.size }}</strong></li>
{% endif %}
<li>Files are deleted when they haven't been accessed for a week.</li>
<li>Files may be deleted if requested by the content owner</li>
<li>If I find illegal content (eg. CP, viruses and such) it will instantly be deleted</li>