aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorMichael McVady <femtonaut@gmail.com>2022-03-07 22:02:53 -0500
committerMichael McVady <femtonaut@gmail.com>2022-03-07 22:02:53 -0500
commit3123f09ce08d3824671ca218bef66c28748bda07 (patch)
treeb30ef7531250813f5e411bac7e3b344b6791780f /conf
parent3fcd6b69c8e9d0acd5b679fd609db82da20ffb3e (diff)
Disable TLS & added posts resource
Diffstat (limited to 'conf')
-rw-r--r--conf/clog.conf24
1 files changed, 15 insertions, 9 deletions
diff --git a/conf/clog.conf b/conf/clog.conf
index b86712f..8a6cf81 100644
--- a/conf/clog.conf
+++ b/conf/clog.conf
@@ -1,27 +1,33 @@
# clog configuration
-server tls {
- bind 127.0.0.1 8888
+# server tls {
+# bind 127.0.0.1 8888
+# }
+
+server notls {
+ bind 127.0.0.1 8889
+ tls no
}
load ./clog.so init
-tls_dhparam dh2048.pem
+# tls_dhparam dh2048.pem
workers 1
seccomp_tracing yes
domain * {
- # attach notls
- attach tls
+ attach notls
- certfile cert/server.pem
- certkey cert/key.pem
+# attach tls
+# certfile cert/server.pem
+# certkey cert/key.pem
filemap /static/ assets/static
- route / page
+ route / posts
+ route ^/posts/[a-z1-9\-]+$ post
- route /posts page
+ route /posts posts
}