mirror of
https://github.com/jorisvink/kore
synced 2025-03-10 04:59:02 -04:00
Before kore needed to be built with NOTLS=1 to be able to do non TLS connections. This has been like this for years. It is time to allow non TLS listeners without having to rebuild Kore. This commit changes your configuration format and will break existing applications their config. Configurations now get listener {} contexts: listen default { bind 127.0.0.1 8888 } The above will create a listener on 127.0.0.1, port 8888 that will serve TLS (still the default). If you want to turn off TLS on that listener, specify "tls no" in that context. Domains now need to be attached to a listener: Eg: domain * { attach default } For the Python API this kills kore.bind(), and kore.bind_unix(). They are replaced with: kore.listen("name", ip=None, port=None, path=None, tls=True).
26 lines
713 B
Plaintext
26 lines
713 B
Plaintext
# pipe_task build config
|
|
# You can switch flavors using: kodev flavor [newflavor]
|
|
|
|
# Set to yes if you wish to produce a single binary instead
|
|
# of a dynamic library. If you set this to yes you must also
|
|
# set kore_source together with kore_flavor.
|
|
single_binary=yes
|
|
kore_source=../../
|
|
kore_flavor=TASKS=1
|
|
|
|
# The cflags below are shared between flavors
|
|
cflags=-Wall -Wmissing-declarations -Wshadow
|
|
cflags=-Wstrict-prototypes -Wmissing-prototypes
|
|
cflags=-Wpointer-arith -Wcast-qual -Wsign-compare
|
|
|
|
dev {
|
|
# These cflags are added to the shared ones when
|
|
# you build the "dev" flavor.
|
|
cflags=-g
|
|
}
|
|
|
|
#prod {
|
|
# You can specify additional CFLAGS here which are only
|
|
# included if you build with the "prod" flavor.
|
|
#}
|