about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-26 22:03:40 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-26 22:03:40 +0300
commit32df4bc24b57d2ec3dc28cac44bd987d91031699 (patch)
tree30fad8f6e531945d0b5d0971ac26ff00257735f1
parent97bb93f51f6d44ecd8c7b9616afa10fc5033227a (diff)
downloadhttpy-32df4bc24b57d2ec3dc28cac44bd987d91031699.tar.gz
httpy-32df4bc24b57d2ec3dc28cac44bd987d91031699.zip
Add file man in config.py
-rw-r--r--src/config.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/config.py b/src/config.py
index cf9fdc5..0d2beff 100644
--- a/src/config.py
+++ b/src/config.py
@@ -10,3 +10,18 @@ API_FILE_RANDOM_MAX_SIZE_LIMIT = 2**30 * 5      # 5 GiB
 API_VERSIONS = {
     "APIv1": {"supported": True}
 }
+
+# file manager
+FILE_MAN_VERBOSE = True
+FILE_MAN_PATH_MAP = {
+    # external
+    "/":                {"path": "www/index.html"},
+    "/about":           {"path": "www/about.html"},
+    "/testing":         {"path": "www/testing.html"},
+    "/projects":        {"path": "www/projects.html"},
+    "/images/*":        {"path": "www/images/*"},
+    "/scripts/*":       {"path": "www/scripts/*"},
+    "/robots.txt":      {"path": "www/robots.txt"},
+    "/favicon.ico":     {"path": "www/css/styles.css"},
+    "/css/styles.css":  {"path": "www/css/styles.css"},
+}