server: Added ssl in config file
For some times there was a --config
supported.
This PR
- Clean up the parsing of cmd arg + config file with pydantic (it's more flexible to add new stuff if we like)
- Server options are now typed
- Add options related to ssl in the config/cmdargs (which was in app.yml)
Here is the config file is use is my simulator now
# daiquiri-server --config=./daiquiri_private/daiquiri.yml
port: 8080
static_folder: "./daiquiri-ui.git/build/"
resource_folders:
- "./beamline_configuration/daiquiri"
- "./daiquiri_private"
ssl: true
ssl_cert: localhost.cert
ssl_key: localhost.key
Edited by Valentin Valls