diff options
Diffstat (limited to 'siteconfig.py')
-rw-r--r-- | siteconfig.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/siteconfig.py b/siteconfig.py index 3a0229f..fa73b46 100644 --- a/siteconfig.py +++ b/siteconfig.py @@ -1,12 +1,16 @@ class siteconfig: # REQUIRED SETTINGS# - + DOMAIN = "example.net" # Your site here! - HOME_TITLE = "WELCOME" # "HELLO WORLD!" + HOME_TITLE = "WELCOME" # Goes right under + # your site LINKS_FILE = ".links" # ".lnx" if you like DESC_FILE = ".description" # ".desc" - DEFAULT_MIMETYPE = "application/octet-stream" # "text/plain" - + DEFAULT_MIMETYPE = "application/octet-stream" + # ^This usually prompts a browser to download a file if the mime + # type is unknown. A good alternative might be "text/plain" + + # Add your desired mimetypes to the csv file MIMETYPES = {} with open('mimetypes.csv') as f: for line in f.readlines(): @@ -21,5 +25,7 @@ class siteconfig: MAIN_SITE_DIRS = None # ["dir1", "dir2", "dir3"] # Set a custom secret key. If not set, it will be generated # Most of the time, you don't need to set this! - SECRET_KEY = None # Something random. - + SECRET_KEY = None # Something random. + # Special option for Flask Compress + # see here https://pypi.org/project/Flask-Compress/ + COMPRESS_MIMETYPES = list(MIMETYPES.values()) |