Fix HAProxy 2.6 compatibility for default backend
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
- Replace http-response set-body (HAProxy 2.8+) with local server approach - Add separate Flask server on port 8080 to serve default page - Update default backend template to use local server instead of inline HTML - Maintain all customization features via environment variables - Fix JavaScript error handling for domains API response
This commit is contained in:
@@ -7,6 +7,5 @@ backend default-backend
|
||||
http-request set-header X-Forwarded-For %[src]
|
||||
http-request set-header X-Real-IP %[src]
|
||||
|
||||
# Serve the default page HTML response
|
||||
http-response set-header Content-Type text/html
|
||||
http-response set-body "{{ default_page_content }}"
|
||||
# Serve the default page HTML response using a local server
|
||||
server default-page 127.0.0.1:8080
|
Reference in New Issue
Block a user