telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 0554a58503a67cfeb81daf786a6daec3de7338a5
parent 108d5b490a581ce55f8196fe87f1557fd43926df
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat, 28 Sep 2019 19:02:11 +0200

Account for Kore configuration format changes.

Diffstat:
Mconf/telize.conf | 43++++++++-----------------------------------
1 file changed, 8 insertions(+), 35 deletions(-)

diff --git a/conf/telize.conf b/conf/telize.conf @@ -1,7 +1,10 @@ # telize configuration -bind 127.0.0.1 8888 -bind ::1 8888 +server tls { + bind 127.0.0.1 8888 + bind ::1 8888 +} + load ./telize.so telize_init tls_dhparam dh2048.pem @@ -9,42 +12,12 @@ tls_dhparam dh2048.pem validator v_callback regex ^.*$ domain * { + attach tls + certfile cert/server.pem certkey cert/key.pem accesslog telize.log - static /ip request_ip - static /jsonip request_json_ip - static /geoip request_location - dynamic ^/geoip/[a-f0-9\:.]*$ request_location - static /location request_location - dynamic ^/location/[a-f0-9\:.]*$ request_location - - restrict /ip get head - restrict /jsonip get head - restrict /geoip get head - restrict ^/geoip/[a-f0-9\:.]*$ get head - restrict /location get head - restrict ^/location/[a-f0-9\:.]*$ get head - - params qs:get /jsonip { - validate callback v_callback - } - - params qs:get /geoip { - validate callback v_callback - } - - params qs:get ^/geoip/[a-f0-9\:.]*$ { - validate callback v_callback - } - - params qs:get /location { - validate callback v_callback - } - - params qs:get ^/location/[a-f0-9\:.]*$ { - validate callback v_callback - } + include conf/routes.conf }