From 59cf36f6c568f0cbec319929460f769211b74430 Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Tue, 27 Aug 2024 02:03:45 +0300 Subject: Update to work with new path map --- src/config.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/config.py') diff --git a/src/config.py b/src/config.py index 5720221..934bafe 100644 --- a/src/config.py +++ b/src/config.py @@ -13,15 +13,16 @@ API_VERSIONS = { # file manager FILE_MAN_VERBOSE = True +FILE_MAN_COMPRESS = True # do compress all files 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/favicon.ico"}, - "/css/styles.css": {"path": "www/css/styles.css"}, + "/": {"path": "www/index.html", "compress": True}, + "/about": {"path": "www/about.html", "compress": True}, + "/testing": {"path": "www/testing.html", "compress": True}, + "/projects": {"path": "www/projects.html", "compress": True}, + "/images/*": {"path": "www/images/*", "compress": False}, + "/scripts/*": {"path": "www/scripts/*", "compress": True}, + "/robots.txt": {"path": "www/robots.txt", "compress": False}, + "/favicon.ico": {"path": "www/favicon.ico", "compress": True}, + "/css/styles.css": {"path": "www/css/styles.css", "compress": True}, } -- cgit 1.4.1