mirror of
https://git.kore.io/kore.git
synced 2024-11-17 15:38:07 +01:00
b95b623e72
Before params get would mean querystring and anything else would just count toward a www-encoded body. Now you can prefix the params block with "qs" indicating that those configured parameters are allowed to occur in the query string regardless of the method used. This means you can do something like: params qs:post /uri { ... } to specify what the allowed parameters are in the querystring for a POST request towards /uri. inspired by and properly fixes #205.
30 lines
445 B
Plaintext
30 lines
445 B
Plaintext
# Kore config for tasks example
|
|
|
|
bind 127.0.0.1 8888
|
|
load ./tasks.so
|
|
|
|
tls_dhparam dh2048.pem
|
|
|
|
task_threads 4
|
|
worker_max_connections 1000
|
|
http_keepalive_time 0
|
|
|
|
validator v_user regex ^[a-z]*$
|
|
|
|
domain * {
|
|
certfile cert/server.pem
|
|
certkey cert/key.pem
|
|
accesslog kore_access.log
|
|
|
|
static / page_handler
|
|
static /post_back post_back
|
|
|
|
params qs:get / {
|
|
validate user v_user
|
|
}
|
|
|
|
params post /post_back {
|
|
validate user v_user
|
|
}
|
|
}
|