kore/examples
Joris Vink 7350131232 Allow listening of tls/notls ports at the same time.
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).
2019-09-27 12:27:04 +02:00
..
async-curl Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
cookies Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
cpp Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
generic Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
headers Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
integers Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
json_yajl Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
jsonrpc Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
memtag Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
messaging Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
nohttp Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
parameters Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
pgsql Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
pgsql-sync Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
pipe_task Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
python-async Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
python-echo Rework pysocket async/await. 2019-03-13 11:07:15 +01:00
python-pgsql Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
sse Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
tasks Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
tls-proxy Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
upload Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
video_stream Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
websocket Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
Makefile add async-curl example to the makefile 2019-04-30 20:38:12 +02:00