mirror of
https://github.com/jorisvink/kore
synced 2025-03-23 11:19:01 -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).
29 lines
501 B
Plaintext
29 lines
501 B
Plaintext
# python-async configuration
|
|
|
|
listen notls {
|
|
tls no
|
|
bind 127.0.0.1 8888
|
|
}
|
|
|
|
python_path src
|
|
|
|
python_import ./src/setup.py
|
|
python_import ./src/async_lock.py
|
|
python_import ./src/async_queue.py
|
|
python_import ./src/async_process.py
|
|
python_import ./src/async_socket.py
|
|
python_import ./src/async_http.py
|
|
|
|
domain * {
|
|
attach notls
|
|
|
|
static /queue async_queue
|
|
static /lock async_lock
|
|
static /proc async_proc
|
|
|
|
static /socket async_socket
|
|
static /socket-test socket_test
|
|
|
|
static /httpclient httpclient
|
|
}
|