aboutsummaryrefslogtreecommitdiffstats
path: root/siteconfig.py
diff options
context:
space:
mode:
authormjfernez <mjfernez@gmail.com>2021-06-07 00:03:12 -0400
committermjfernez <mjfernez@gmail.com>2021-06-07 00:40:39 -0400
commitca5b85fb744221588859f3639ba7e4da0bc82649 (patch)
tree2595d1e315e09e5d35c362d95a35585416a7a2fb /siteconfig.py
downloadezcms-ca5b85fb744221588859f3639ba7e4da0bc82649.tar.gz
first commit
Diffstat (limited to 'siteconfig.py')
-rw-r--r--siteconfig.py21
1 files changed, 21 insertions, 0 deletions
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