island: Use certificate provided in config, not environment variables

This commit is contained in:
Mike Salvatore 2021-06-07 13:23:53 -04:00
parent 4e1b4fbf6b
commit 36314f09ae
1 changed files with 2 additions and 4 deletions

View File

@ -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()