aboutsummaryrefslogtreecommitdiffstats
path: root/siteconfig.py
blob: 3a0229f4146b5e475054e54b55cfabf3d627ad81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class siteconfig:
    # REQUIRED SETTINGS#
    
    DOMAIN = "example.net"                          # Your site here!
    HOME_TITLE = "WELCOME"                          # "HELLO WORLD!"
    LINKS_FILE = ".links"                           # ".lnx" if you like
    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 #

    # Be default, ALL directories in the site toolbar are contained in
    # ./templates/site/. You can change this to only specific directories, but
    # these still have to be in ./templates/site
    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.