blog

The tiny blog platform powering https://blog.kore.io
Commits | Files | Refs | README | git clone https://git.kore.io/kore-blog.git

commit aec8c77c3dbb679e85a8bdad7ac31d61f03806d5
parent 40869c8fd0a3dfeeca55d8bf93541521d020fabf
Author: Joris Vink <joris@coders.se>
Date:   Fri,  8 Nov 2019 19:54:45 +0100

update for platform

Diffstat:
conf/blog.conf | 10++++++++--
conf/build.conf | 7++++---
src/blog.c | 4++--
3 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/conf/blog.conf b/conf/blog.conf @@ -1,9 +1,12 @@ # blog configuration -bind 127.0.0.1 9988 +server default { + bind 127.0.0.1 9988 + tls no +} workers 4 -runas nobody +runas _blog chroot /var/chroot/kore-blog validator v_any regex ^.*$ @@ -24,6 +27,9 @@ authentication author { } domain * { + attach default + accesslog /var/log/kore/blog.log + static / post_list referer_log dynamic ^/posts/[a-z1-9\-]+$ post_render referer_log diff --git a/conf/build.conf b/conf/build.conf @@ -5,8 +5,8 @@ # of a dynamic library. If you set this to yes you must also # set kore_source together with kore_flavor. single_binary=yes -kore_source=/Users/joris/src/kore -kore_flavor=NOTLS=1 +kore_source=/home/joris/src/kore +kore_flavor= # The flags below are shared between flavors cflags=-std=c99 -pedantic -O3 @@ -18,7 +18,8 @@ mime_add=png:image/png mime_add=css:text/css mime_add=html:text/html; charset=utf-8 -ldflags=-lsodium +cflags=-I/usr/local/include +ldflags=-L/usr/local/lib -lsodium dev { cflags=-g diff --git a/src/blog.c b/src/blog.c @@ -563,7 +563,7 @@ auth_session_add(struct kore_msg *msg, const void *data) const struct session *session; if (msg->length != sizeof(*session)) { - kore_log(LOG_ERR, "auth_session_add: invalid len (%u)", + kore_log(LOG_ERR, "auth_session_add: invalid len (%zu)", msg->length); return; } @@ -585,7 +585,7 @@ auth_session_del(struct kore_msg *msg, const void *data) struct user *user; if (msg->length != sizeof(uid)) { - kore_log(LOG_ERR, "auth_session_del: invalid len (%u)", + kore_log(LOG_ERR, "auth_session_del: invalid len (%zu)", msg->length); return; }