|
|
|
@ -13,7 +13,9 @@ async def write_config_file(
|
|
|
|
|
with open(path_to_template_file, "r") as file: |
|
|
|
|
template = file.read() |
|
|
|
|
|
|
|
|
|
config_body: str = template.replace("server_name _;", f"server_name {server_name};") |
|
|
|
|
config_body: str = template.replace( |
|
|
|
|
"server_name _;", f"server_name {server_name}.server.com;" |
|
|
|
|
) |
|
|
|
|
condifg_full_path: str = os.path.abspath(path_for_config) |
|
|
|
|
config_filename: str = f"{server_name}.conf" |
|
|
|
|
|
|
|
|
|