feat(playout): allow harbor ssl configuration
This commit is contained in:
parent
8764feded9
commit
b2fc3a5ecf
17 changed files with 248 additions and 13 deletions
|
@ -3,20 +3,33 @@ from typing import List
|
|||
from libretime_playout.config import Config
|
||||
|
||||
|
||||
def make_config_with_stream(**kwargs) -> Config:
|
||||
def make_config(**kwargs) -> Config:
|
||||
return Config(
|
||||
**{
|
||||
"general": {
|
||||
"public_url": "http://localhost:8080",
|
||||
"api_key": "some_api_key",
|
||||
},
|
||||
"stream": kwargs,
|
||||
**kwargs,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
def make_config_with_stream(**kwargs) -> Config:
|
||||
return make_config(stream=kwargs)
|
||||
|
||||
|
||||
TEST_STREAM_CONFIGS: List[Config] = [
|
||||
make_config_with_stream(),
|
||||
make_config(),
|
||||
make_config(
|
||||
liquidsoap={
|
||||
"harbor_ssl_certificate": "/fake/ssl.cert",
|
||||
"harbor_ssl_private_key": "/fake/ssl.key",
|
||||
},
|
||||
stream={
|
||||
"system": [{"enabled": True, "kind": "pulseaudio"}],
|
||||
},
|
||||
),
|
||||
make_config_with_stream(
|
||||
outputs={
|
||||
"icecast": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue