mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
work
This commit is contained in:
@@ -38,7 +38,7 @@ def write_nginx_config():
|
||||
print(f'test with:\n{curl_help_str}')
|
||||
|
||||
|
||||
def process_domain(domain_data):
|
||||
def process_domain(domain_data) -> list:
|
||||
if domain_data['cert'] == 'upload':
|
||||
domain_data['cert_file'] = config.nginx_certs_dir / f'{domain_data["slug"]}.cert'
|
||||
domain_data['key_file'] = config.nginx_certs_dir / f'{domain_data["slug"]}.key'
|
||||
@@ -50,6 +50,8 @@ def process_domain(domain_data):
|
||||
|
||||
return create_nginx_conf(domain_data)
|
||||
|
||||
return []
|
||||
|
||||
|
||||
def create_nginx_conf(domain_data: dict):
|
||||
dynamic_block_lines, curl_help = dynamic_blocks(domain_data)
|
||||
|
||||
Reference in New Issue
Block a user