kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 36bf2d34c62bdf11d7ac2b97507559a46ed449f6
parent 338047a95b1c0c61b62198c217432c6c8d3fa3cc
Author: Joris Vink <joris@coders.se>
Date:   Wed,  5 Jun 2013 09:29:06 +0200

better example configuration.

Diffstat:
example.conf | 42+++++++++++++++++++++++++++++++++++++-----
1 file changed, 37 insertions(+), 5 deletions(-)

diff --git a/example.conf b/example.conf @@ -2,18 +2,50 @@ # Server configuration. bind 10.211.55.3 443 + +# The path worker processes will chroot too after starting. +# (Make sure your X.509 certificates are available in this path). chroot /home/joris/src/kore + +# Worker processes will run as the specified user. +# (Make sure this user has correct permissions on your X.509 certificates). runas joris -workers 10 + +# Set workers to the amount of CPU's available in your system, +# kore will automatically distribute all workers on them. +workers 2 + +# Store the main process its pid in this file. #pidfile /var/run/kore.pid -# Load our site module now (containing all the goodies). -# onload myinit +# The onload function is called everytime the module is loaded or reloaded. +#onload myinit + +# Specifies what module to be loaded. load example/example.module -# Declare page handlers below. -# handler path module_callback +# Domain configuration +# +# Each domain configuration starts with listing what domain +# the directives that follow are to be applied upon. +# +# Additionally you can specify per domain configuration: +# - Nothing yet +# +# Handlers +# +# Handlers are either static (for fixed paths) or dynamic. +# Dynamic handlers take a POSIX regular expression as its path. +# +# Syntax: +# handler path module_callback + +# Example domain that responds to 10.211.55.33. domain 10.211.55.3 static /css/style.css serve_style_css static / serve_index dynamic ^/[a-z0-9_]*$ serve_profile + +# Another domain that responds to foo.bar. +domain foo.bar +dynamic ^/*$ serve_foobar