From e6b65679a43c60bc1b2e2221d01db341305b2e1c Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sun, 8 Feb 2026 10:50:14 +0100 Subject: [PATCH] feat(haproxy): Add presse.cybermood.eu vhost - Add vhost for presse.cybermood.eu - Add backend cybermood_presse on port 4001 - Add ACME certificate entry - Add ACL routing rules - Fix backends to use LAN IP (192.168.255.1) instead of localhost Co-Authored-By: Claude Opus 4.5 --- .../files/etc/config/haproxy | 30 ++++++++++++++++++- .../usr/share/haproxy/templates/default.cfg | 10 ++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/package/secubox/secubox-app-haproxy/files/etc/config/haproxy b/package/secubox/secubox-app-haproxy/files/etc/config/haproxy index 047f9eb4..bf02d92d 100644 --- a/package/secubox/secubox-app-haproxy/files/etc/config/haproxy +++ b/package/secubox/secubox-app-haproxy/files/etc/config/haproxy @@ -65,6 +65,14 @@ config vhost 'cybermood_www' option acme '1' option enabled '1' +config vhost 'cybermood_presse' + option domain 'presse.cybermood.eu' + option backend 'cybermood_presse' + option ssl '1' + option ssl_redirect '1' + option acme '1' + option enabled '1' + # Example vhost #config vhost 'example' # option domain 'example.com' @@ -84,11 +92,26 @@ config backend 'cybermood_web' config server 'cybermood_srv' option backend 'cybermood_web' option name 'cybermood-srv' - option address '127.0.0.1' + option address '192.168.255.1' option port '4000' option check '1' option enabled '1' +# CyberMood Presse backend +config backend 'cybermood_presse' + option name 'cybermood-presse' + option mode 'http' + option balance 'roundrobin' + option enabled '1' + +config server 'cybermood_presse_srv' + option backend 'cybermood_presse' + option name 'cybermood-presse-srv' + option address '192.168.255.1' + option port '4001' + option check '1' + option enabled '1' + # Example backend with servers #config backend 'web_servers' # option name 'web-servers' @@ -126,6 +149,11 @@ config certificate 'cert_cybermood_www' option type 'acme' option enabled '1' +config certificate 'cert_cybermood_presse' + option domain 'presse.cybermood.eu' + option type 'acme' + option enabled '1' + # Certificate entry (manual or ACME) #config certificate 'cert_example' # option domain 'example.com' diff --git a/package/secubox/secubox-app-haproxy/files/usr/share/haproxy/templates/default.cfg b/package/secubox/secubox-app-haproxy/files/usr/share/haproxy/templates/default.cfg index bc2808ad..ff596324 100644 --- a/package/secubox/secubox-app-haproxy/files/usr/share/haproxy/templates/default.cfg +++ b/package/secubox/secubox-app-haproxy/files/usr/share/haproxy/templates/default.cfg @@ -64,7 +64,9 @@ frontend https-in # CyberMood.eu routing acl is_cybermood hdr(host) -i cybermood.eu www.cybermood.eu + acl is_cybermood_presse hdr(host) -i presse.cybermood.eu use_backend cybermood_web if is_cybermood + use_backend cybermood_presse if is_cybermood_presse default_backend default_luci @@ -83,4 +85,10 @@ backend default_luci backend cybermood_web mode http balance roundrobin - server cybermood 127.0.0.1:4000 check + server cybermood 192.168.255.1:4000 check + +# CyberMood Presse backend +backend cybermood_presse + mode http + balance roundrobin + server cybermood-presse 192.168.255.1:4001 check