# 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 127.0.0.1 {
	certfile	cert/server.crt
	certkey		cert/server.key
	accesslog	kore_access.log

	static		/css/style.css		serve_style_css
	static		/			serve_index
	static		/intro.jpg		serve_intro
	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	serve_private_test	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
	}
}
