tasks.conf (433B)
1 # Kore config for tasks example
2
3 server tls {
4 bind 127.0.0.1 8888
5 }
6
7 task_threads 4
8 worker_max_connections 1000
9 http_keepalive_time 0
10
11 validator v_user regex ^[a-z]*$
12
13 domain * {
14 attach tls
15
16 certfile cert/server.pem
17 certkey cert/key.pem
18 accesslog kore_access.log
19
20 route / {
21 handler page_handler
22 validate qs:get user v_user
23 }
24
25 route /post_back {
26 handler post_back
27 methods post
28 validate post user v_user
29 }
30 }