potato
This commit is contained in:
@@ -22,7 +22,7 @@ def build_container_routing_labels(prefix: str, strip_prefix=True):
|
||||
)
|
||||
|
||||
labels = {}
|
||||
labels[router_key] = "Host(`{prefix}.{host_name}`)".format(
|
||||
labels[router_key] = "Host(`{host_name}`) && PathPrefix(`/{prefix}`)".format(
|
||||
host_name=host_name, prefix=prefix
|
||||
)
|
||||
if strip_prefix:
|
||||
@@ -38,7 +38,7 @@ def delete_file_package(table: GameTable) -> bool:
|
||||
if not os.path.exists("/data/{prefix}".format(prefix=table.game_table_link)):
|
||||
return False
|
||||
shutil.rmtree("/data/{prefix}".format(prefix=table.game_table_link))
|
||||
os.removedir("/data/{prefix}")
|
||||
os.removedirs("/data/{prefix}")
|
||||
return True
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ def start_foundry_container(table: GameTable, key: TableKey):
|
||||
else:
|
||||
|
||||
environment = [
|
||||
#"FOUNDRY_ROUTE_PREFIX={prefix}".format(prefix=table.game_table_link),
|
||||
"FOUNDRY_ROUTE_PREFIX={prefix}".format(prefix=table.game_table_link),
|
||||
"FOUNDRY_TELEMETRY=FALSE",
|
||||
"FOUNDRY_LICENSE_KEY={key_value}".format(key_value=key.key),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user