better launch management caching
This commit is contained in:
@@ -2326,6 +2326,13 @@ def init_routes(main_bp):
|
||||
@login_required
|
||||
@require_password_change
|
||||
def create_dns_records():
|
||||
"""
|
||||
Create or update DNS A records in Cloudflare.
|
||||
|
||||
Important: DNS records are created with proxied=False to avoid conflicts
|
||||
with NGINX Proxy Manager. This ensures direct DNS resolution without
|
||||
Cloudflare's proxy layer interfering with the NGINX configuration.
|
||||
"""
|
||||
if not os.environ.get('MASTER', 'false').lower() == 'true':
|
||||
return jsonify({'error': 'Unauthorized'}), 403
|
||||
|
||||
@@ -2372,7 +2379,7 @@ def init_routes(main_bp):
|
||||
'name': domain,
|
||||
'content': cloudflare_settings['server_ip'],
|
||||
'ttl': 1, # Auto TTL
|
||||
'proxied': True
|
||||
'proxied': False # DNS only - no Cloudflare proxy to avoid conflicts with NGINX
|
||||
}
|
||||
|
||||
update_response = requests.put(
|
||||
@@ -2393,7 +2400,7 @@ def init_routes(main_bp):
|
||||
'name': domain,
|
||||
'content': cloudflare_settings['server_ip'],
|
||||
'ttl': 1, # Auto TTL
|
||||
'proxied': True
|
||||
'proxied': False # DNS only - no Cloudflare proxy to avoid conflicts with NGINX
|
||||
}
|
||||
|
||||
create_response = requests.post(
|
||||
|
||||
Reference in New Issue
Block a user