mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
# Placeholder configuration
|
|
|
|
bind 127.0.0.1 8888
|
|
load ./generic.so example_load
|
|
|
|
tls_dhparam dh2048.pem
|
|
|
|
http_body_max 1024000000
|
|
http_body_disk_offload 1024000
|
|
|
|
validator v_example function v_example_func
|
|
validator v_regex regex ^/test/[a-z]*$
|
|
validator v_number regex ^[0-9]*$
|
|
validator v_session function v_session_validate
|
|
|
|
authentication auth_example {
|
|
authentication_type cookie
|
|
authentication_value session_id
|
|
authentication_validator v_session
|
|
authentication_uri /private
|
|
}
|
|
|
|
domain * {
|
|
certfile cert/server.pem
|
|
certkey cert/key.pem
|
|
accesslog kore_access.log
|
|
|
|
static /css/style.css asset_serve_style_css
|
|
static / asset_serve_index_html
|
|
static /intro.jpg asset_serve_intro_jpg
|
|
static /b64test serve_b64test
|
|
static /upload serve_file_upload
|
|
static /validator serve_validator
|
|
static /params-test serve_params_test
|
|
static /private serve_private
|
|
|
|
static /private/test asset_serve_private_test_html auth_example
|
|
|
|
params post /params-test {
|
|
validate test1 v_example
|
|
validate test2 v_regex
|
|
}
|
|
|
|
params get /params-test {
|
|
validate arg1 v_example
|
|
validate id v_number
|
|
}
|
|
}
|