DOMAIN_CF removed

This commit is contained in:
Zsolt Ero
2024-06-24 16:48:13 +02:00
parent 5f27cade7a
commit dd7965726a
6 changed files with 3 additions and 44 deletions

View File

@@ -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():

View 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