aboutsummaryrefslogtreecommitdiffstats
path: root/siteconfig.py
blob: 8dbe006e1c8c76f89bab0a50db60fbc704df3558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class siteconfig:
    # REQUIRED SETTINGS#
    DOMAIN = "example.net"          # Your domain name, or site title
    HOME_TITLE = "WELCOME"          # "HELLO WORLD!"
    LINKS_FILE = ".links"           # ".lnx"
    DESC_FILE = ".description"      # ".desc`"
    DEFAULT_MIMETYPE = "application/octet-stream"   # "text/plain"

    MIMETYPES = {}
    with open('mimetypes.csv') as f:
        for line in f.readlines():
            ext, mime = line.strip().split(',')
            MIMETYPES.update({ext: mime})

    # OPTIONAL SETTINGS #
    # Remove 'None' to add custom values
    MAIN_SITE_DIRS = None  # ["dir1", "dir2", "dir3"]
    # b"\xca\x05\x80\xa3|\xdbh@\xec<\xcd\x19\xf4\nRN:)\x13\x917|km\xb0'>'\x1d&G\xe8"
    SECRET_KEY = None