better launch management caching
This commit is contained in:
@@ -2326,6 +2326,13 @@ def init_routes(main_bp):
|
|||||||
@login_required
|
@login_required
|
||||||
@require_password_change
|
@require_password_change
|
||||||
def create_dns_records():
|
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':
|
if not os.environ.get('MASTER', 'false').lower() == 'true':
|
||||||
return jsonify({'error': 'Unauthorized'}), 403
|
return jsonify({'error': 'Unauthorized'}), 403
|
||||||
|
|
||||||
@@ -2372,7 +2379,7 @@ def init_routes(main_bp):
|
|||||||
'name': domain,
|
'name': domain,
|
||||||
'content': cloudflare_settings['server_ip'],
|
'content': cloudflare_settings['server_ip'],
|
||||||
'ttl': 1, # Auto TTL
|
'ttl': 1, # Auto TTL
|
||||||
'proxied': True
|
'proxied': False # DNS only - no Cloudflare proxy to avoid conflicts with NGINX
|
||||||
}
|
}
|
||||||
|
|
||||||
update_response = requests.put(
|
update_response = requests.put(
|
||||||
@@ -2393,7 +2400,7 @@ def init_routes(main_bp):
|
|||||||
'name': domain,
|
'name': domain,
|
||||||
'content': cloudflare_settings['server_ip'],
|
'content': cloudflare_settings['server_ip'],
|
||||||
'ttl': 1, # Auto TTL
|
'ttl': 1, # Auto TTL
|
||||||
'proxied': True
|
'proxied': False # DNS only - no Cloudflare proxy to avoid conflicts with NGINX
|
||||||
}
|
}
|
||||||
|
|
||||||
create_response = requests.post(
|
create_response = requests.post(
|
||||||
|
|||||||
@@ -1830,6 +1830,13 @@ function updateStatus(step, message, type = 'info', details = '') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an NGINX proxy host for the specified domains.
|
||||||
|
*
|
||||||
|
* Important: Caching is disabled (caching_enabled: false) to ensure real-time
|
||||||
|
* content delivery and avoid potential issues with cached responses interfering
|
||||||
|
* with dynamic content or authentication.
|
||||||
|
*/
|
||||||
async function createProxyHost(domains, port, sslCertificateId) {
|
async function createProxyHost(domains, port, sslCertificateId) {
|
||||||
try {
|
try {
|
||||||
// Get NGINX settings from the template
|
// Get NGINX settings from the template
|
||||||
|
|||||||
Reference in New Issue
Block a user