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

parameters.conf (412B)



      1 # Placeholder configuration
      2 
      3 server tls {
      4 	bind 127.0.0.1 8888
      5 }
      6 
      7 load		./parameters.so
      8 
      9 # The validator used to validate the 'id' parameter
     10 # defined below. We'll use a simple regex to make sure
     11 # it only matches positive numbers.
     12 validator	v_id		regex		^[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 		validate qs:get id v_id
     25 	}
     26 }