Properly do config for upload example

This commit is contained in:
Joris Vink 2016-01-18 11:51:44 +01:00
parent 192f458f97
commit d67b5aaa04
1 changed files with 5 additions and 8 deletions

View File

@ -3,17 +3,14 @@
bind 127.0.0.1 8888
load ./upload.so
tls_dhparam dh2048.pem
http_body_max 1024000000
http_body_disk_offload 4096
validator v_name regex ^[a-zA-Z]*$
validator v_number regex ^[0-9]*$
domain 127.0.0.1 {
static / page
certfile cert/server.crt
certkey cert/server.key
params post / {
validate field1 v_name
validate field2 v_number
}
static / page
}