Fix: apistatusd.py

- Changed apistatusd.conf: set server.host default value to 0.0.0.0 to
  improve error messages; needs checking if this disabled ipv6
- Changed apistatusd.conf: renamed default client.cert filename to
  improve meaning

- Fix create_ssl_context: context.options was reset by misuse of `=`
  instead of binary or assignment `|=`
- Changed main/socket-creation: disabled keepalive
- Fix main/connection/pre-ssl-handshake: set missing tls handshake
  timeout; code went into infinite waiting block
- Some cleanup
This commit is contained in:
Ludwig Behm 2023-10-23 23:50:29 +02:00
parent 26e6ae6374
commit d9cf4695b8
Signed by: l.behm
GPG key ID: D344835D63B89384
2 changed files with 20 additions and 15 deletions

View file

@ -12,14 +12,14 @@ timeout = 5.0
loglevel = debug
[server]
host = localhost
host = 0.0.0.0
port = 10001
cert = ./certs/statusd-pub.pem
key = ./certs/statusd-key.pem
[client]
cert = ./certs/statusclient-pub.pem
# possible values: true, false, may
cert = ./certs/client-ca.pem
# possible values: false, may, true
required = true
[api]