2014-08-03 20:29:24 +02:00
|
|
|
# Placeholder configuration
|
|
|
|
|
2019-09-27 20:00:35 +02:00
|
|
|
server tls {
|
2019-09-27 12:22:35 +02:00
|
|
|
bind 127.0.0.1 8888
|
|
|
|
}
|
|
|
|
|
2014-08-03 20:29:24 +02:00
|
|
|
load ./integers.so
|
|
|
|
|
2015-03-27 23:23:21 +01:00
|
|
|
workers 2
|
|
|
|
worker_max_connections 5000
|
|
|
|
|
2015-05-06 10:59:43 +02:00
|
|
|
tls_dhparam dh2048.pem
|
2015-02-06 09:02:29 +01:00
|
|
|
|
2018-05-04 15:55:35 +02:00
|
|
|
validator v_id regex ^-?[0-9]*.?[0-9]+$
|
2014-08-03 20:29:24 +02:00
|
|
|
|
2017-09-19 15:16:02 +02:00
|
|
|
domain * {
|
2019-09-27 12:22:35 +02:00
|
|
|
attach tls
|
|
|
|
|
2017-02-26 02:02:39 +01:00
|
|
|
certfile cert/server.pem
|
|
|
|
certkey cert/key.pem
|
2019-11-15 08:11:02 +01:00
|
|
|
route / page
|
2014-08-03 20:29:24 +02:00
|
|
|
|
2018-01-16 18:47:50 +01:00
|
|
|
# allowed parameters in the query string for GETs
|
|
|
|
params qs:get / {
|
2014-08-03 20:29:24 +02:00
|
|
|
validate id v_id
|
|
|
|
}
|
|
|
|
}
|