Commit Graph

21 Commits

Author SHA1 Message Date
shadowdao ca37a68255 Add IP blocking functionality to HAProxy Manager
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 1m1s
- Add blocked_ips database table to store blocked IP addresses
- Implement API endpoints for IP blocking management:
  - GET /api/blocked-ips: List all blocked IPs
  - POST /api/blocked-ips: Block an IP address
  - DELETE /api/blocked-ips: Unblock an IP address
- Update HAProxy configuration generation to include blocked IP ACLs
- Create blocked IP page template for denied access
- Add comprehensive API documentation for WHP integration
- Include test script for IP blocking functionality
- Update .gitignore with Python patterns
- Add CLAUDE.md for codebase documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-21 18:32:47 -07:00
shadowdao a7ce40f600 Fix server configuration templates - add proper newlines between server entries
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 40s
2025-07-13 01:21:19 -07:00
shadowdao fac6cef0db Fix HAProxy 2.6 compatibility for default backend
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
2025-07-11 19:27:42 -07:00
shadowdao 27f3f8959b Add default backend page for unmatched domains
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
- Add default backend template (hap_default_backend.tpl)
- Add customizable default page HTML template (default_page.html)
- Modify generate_config() to include default backend for unmatched domains
- Add environment variables for customizing default page content:
  - HAPROXY_DEFAULT_PAGE_TITLE
  - HAPROXY_DEFAULT_MAIN_MESSAGE
  - HAPROXY_DEFAULT_SECONDARY_MESSAGE
- Update README with documentation and examples
- Ensure backward compatibility with existing configurations
- Remove email contact link as requested
2025-07-11 19:10:05 -07:00
shadowdao 64c707317f Adding reload function and more tweaks for backends
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 48s
2025-03-09 10:59:03 -07:00
shadowdao 7e53ba00d8 update again for GET Method
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
2025-03-07 19:29:20 -08:00
shadowdao 2c66b1bf40 fix method to GET instead of POST
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 36s
2025-03-07 19:13:41 -08:00
shadowdao edaefd9cd1 remove the extra lines at the end of the index
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 35s
2025-03-07 19:09:51 -08:00
shadowdao d3dd69cc02 Adding config regenerate
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
2025-03-07 19:06:38 -08:00
shadowdao c27f7fb5e8 Adding httpchk options
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
2025-03-07 17:19:22 -08:00
shadowdao 7b1e8a9536 Fix issue where backend was not getting created
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 1m39s
2025-03-06 21:03:08 -08:00
shadowdao 6f395fa621 fix issue with existing domains and new domains conflicting
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
2025-03-06 17:45:02 -08:00
shadowdao 94f9223bc7 troubleshoot errors with web interface
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 39s
2025-03-06 17:14:42 -08:00
shadowdao 9621786175 Adding web interface
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 1m18s
2025-03-06 16:51:29 -08:00
shadowdao 6b28c118de Adding template overrides
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
2025-02-21 08:01:16 -08:00
shadowdao ff529be07f Fix Templates from causing errors with haproxy when added, Fix add notice when haproxy fails check
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
2025-02-21 06:28:51 -08:00
shadowdao 0357a73770 cleanup template
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 37s
2025-02-20 17:13:25 -08:00
shadowdao 673265690a fix file name error
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
2025-02-20 16:32:07 -08:00
shadowdao 32498f1a04 fix order of acls and backends, put db in volume
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 38s
2025-02-20 16:26:27 -08:00
shadowdao 305fffba42 haproxy manager 2025-02-20 13:41:38 -08:00
shadowdao 9c52edd53a Not fully working, but saving progress 2025-02-19 07:53:26 -08:00