blog.conf (921B)
1 # blog configuration
2
3 bind 127.0.0.1 9988
4
5 workers 4
6 runas nobody
7 chroot /var/chroot/kore-blog
8
9 validator v_any regex ^.*$
10 validator v_referer function referer
11 validator v_session function auth_session
12 validator v_user function auth_user_exists
13
14 authentication referer_log {
15 authentication_type request
16 authentication_validator v_referer
17 }
18
19 authentication author {
20 authentication_type cookie
21 authentication_validator v_session
22 authentication_value blog_token
23 authentication_uri /login/
24 }
25
26 domain * {
27 static / post_list referer_log
28 dynamic ^/posts/[a-z1-9\-]+$ post_render referer_log
29
30 static /drafts/ draft_list author
31 dynamic ^/drafts/[a-z1-9\-]+$ draft_render author
32
33 static /logo.png asset_serve_kore_png
34 static /style.css asset_serve_style_css
35
36 static /login/ auth_login referer_log
37
38 params post /login/ {
39 validate user v_user
40 validate passphrase v_any
41 }
42
43 dynamic ^.*$ redirect
44 }