forked from p15670423/monkey
island: Use certificate provided in config, not environment variables
This commit is contained in:
parent
4e1b4fbf6b
commit
36314f09ae
|
@ -1,6 +1,5 @@
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
@ -99,9 +98,8 @@ def _start_island_server(should_setup_only, config_options: IslandConfigOptions)
|
||||||
http_server = WSGIServer(
|
http_server = WSGIServer(
|
||||||
("0.0.0.0", env_singleton.env.get_island_port()),
|
("0.0.0.0", env_singleton.env.get_island_port()),
|
||||||
app,
|
app,
|
||||||
# TODO: modify next two lines?
|
certfile=crt_path,
|
||||||
certfile=os.environ.get("SERVER_CRT", crt_path),
|
keyfile=key_path,
|
||||||
keyfile=os.environ.get("SERVER_KEY", key_path),
|
|
||||||
)
|
)
|
||||||
_log_init_info()
|
_log_init_info()
|
||||||
http_server.serve_forever()
|
http_server.serve_forever()
|
||||||
|
|
Loading…
Reference in New Issue