mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
DOMAIN_CF removed
This commit is contained in:
@@ -17,21 +17,9 @@ from http_host_lib import (
|
||||
def write_nginx_config():
|
||||
curl_text_mix = ''
|
||||
|
||||
domain_cf = HOST_CONFIG['domain_cf']
|
||||
domain_le = HOST_CONFIG['domain_le']
|
||||
domain_ledns = HOST_CONFIG['domain_ledns']
|
||||
|
||||
# processing Cloudflare config
|
||||
if domain_cf:
|
||||
if not (CERTS_DIR / 'ofm_cf.cert').is_file() or not (CERTS_DIR / 'ofm_cf.key').is_file():
|
||||
sys.exit('ofm_cf.cert or ofm_cf.key missing')
|
||||
|
||||
curl_text_mix += create_nginx_conf(
|
||||
template_path=NGINX_DIR / 'cf.conf',
|
||||
local='ofm_cf',
|
||||
domain=domain_cf,
|
||||
)
|
||||
|
||||
# processing Cloudflare config
|
||||
if domain_ledns:
|
||||
if not (OFM_CONFIG_DIR / 'rclone.conf').is_file():
|
||||
|
||||
@@ -150,15 +150,6 @@ def update_records(c, working_hosts) -> bool:
|
||||
cloudflare_api_token=cloudflare_api_token,
|
||||
)
|
||||
|
||||
updated |= set_records_round_robin(
|
||||
zone_id=zone_id,
|
||||
name=c['domain_cf'],
|
||||
host_ip_set=working_hosts,
|
||||
proxied=True,
|
||||
comment='domain_cf',
|
||||
cloudflare_api_token=cloudflare_api_token,
|
||||
)
|
||||
|
||||
return updated
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user