SSL support (#1340)

This commit is contained in:
Fabian Dill
2023-01-21 17:29:27 +01:00
committed by GitHub
parent 34dba007dc
commit 9add1495d5
4 changed files with 32 additions and 9 deletions

View File

@@ -177,6 +177,8 @@ class MultiworldInstance():
with guardian_lock:
multiworlds[self.room_id] = self
self.ponyconfig = config["PONY"]
self.cert = config["SELFLAUNCHCERT"]
self.key = config["SELFLAUNCHKEY"]
def start(self):
if self.process and self.process.is_alive():
@@ -184,7 +186,8 @@ class MultiworldInstance():
logging.info(f"Spinning up {self.room_id}")
process = multiprocessing.Process(group=None, target=run_server_process,
args=(self.room_id, self.ponyconfig, get_static_server_data()),
args=(self.room_id, self.ponyconfig, get_static_server_data(),
self.cert, self.key),
name="MultiHost")
process.start()
# bind after start to prevent thread sync issues with guardian.