new options
This commit is contained in:
1 parent
7b49105ba3
commit
86de6f24bd
1 file changed
+1
-1
@@ -241,7 +241,7 @@ def update_haproxy_config(frontend_name, frontend_ip, frontend_port, lb_method,
|
||||
|
||||
# ===== REDIRECT FRONTEND (HTTP -> HTTPS) =====
|
||||
if backend_ssl_redirect and ssl_redirect_backend_name:
|
||||
unique_redirect_backend_name = f"{ssl_redirect_backend_name}_{sanitize_name(frontend_hostname)}" if frontend_hostname else ssl_redirect_backend_name
|
||||
unique_redirect_backend_name = f"{ssl_redirect_backend_name}_redirect_{sanitize_name(frontend_hostname)}" if frontend_hostname else f"{ssl_redirect_backend_name}_redirect"
|
||||
|
||||
if is_backend_exist(unique_redirect_backend_name):
|
||||
return f"Redirect backend {unique_redirect_backend_name} already exists. Cannot add duplicate."
|
||||
|
||||
Reference in new issue
Block a user