satisfy cloudflare DDoS protection

This commit is contained in:
ed
2022-07-03 16:04:28 +02:00
parent 6605e461c7
commit 6e445487b1
8 changed files with 72 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ class HttpSrv(object):
env.loader = jinja2.FileSystemLoader(os.path.join(E.mod, "web"))
self.j2 = {
x: env.get_template(x + ".html")
for x in ["splash", "browser", "browser2", "msg", "md", "mde"]
for x in ["splash", "browser", "browser2", "msg", "md", "mde", "cf"]
}
self.prism = os.path.exists(os.path.join(E.mod, "web", "deps", "prism.js.gz"))