From ca5b85fb744221588859f3639ba7e4da0bc82649 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Mon, 7 Jun 2021 00:03:12 -0400 Subject: first commit --- siteconfig.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 siteconfig.py (limited to 'siteconfig.py') diff --git a/siteconfig.py b/siteconfig.py new file mode 100644 index 0000000..28c3cbd --- /dev/null +++ b/siteconfig.py @@ -0,0 +1,21 @@ +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`" + HOST = "127.0.0.1" # "192.168.1.1" "1.2.3.4" + PORT = 8000 # 8080, 8001, 8002 + 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 -- cgit v1.2.3