examples/integers/conf/integers.conf
raw| 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 | } |