kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

integers.conf (365B)



      1 # Placeholder configuration
      2 
      3 server tls {
      4 	bind 127.0.0.1 8888
      5 }
      6 
      7 load		./integers.so
      8 
      9 workers			2
     10 worker_max_connections	5000
     11 
     12 validator	v_id	regex	^-?[0-9]*.?[0-9]+$
     13 
     14 domain * {
     15 	attach		tls
     16 
     17 	certfile	cert/server.pem
     18 	certkey		cert/key.pem
     19 
     20 	route / {
     21 		handler page
     22 		methods get
     23 
     24 		# allowed parameters in the query string for GETs
     25 		validate get id v_id
     26 	}
     27 }