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 <noreply@anthropic.com>
This commit is contained in:
parent
a7521d6274
commit
e6b65679a4
@ -65,6 +65,14 @@ config vhost 'cybermood_www'
|
|||||||
option acme '1'
|
option acme '1'
|
||||||
option enabled '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
|
# Example vhost
|
||||||
#config vhost 'example'
|
#config vhost 'example'
|
||||||
# option domain 'example.com'
|
# option domain 'example.com'
|
||||||
@ -84,11 +92,26 @@ config backend 'cybermood_web'
|
|||||||
config server 'cybermood_srv'
|
config server 'cybermood_srv'
|
||||||
option backend 'cybermood_web'
|
option backend 'cybermood_web'
|
||||||
option name 'cybermood-srv'
|
option name 'cybermood-srv'
|
||||||
option address '127.0.0.1'
|
option address '192.168.255.1'
|
||||||
option port '4000'
|
option port '4000'
|
||||||
option check '1'
|
option check '1'
|
||||||
option enabled '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
|
# Example backend with servers
|
||||||
#config backend 'web_servers'
|
#config backend 'web_servers'
|
||||||
# option name 'web-servers'
|
# option name 'web-servers'
|
||||||
@ -126,6 +149,11 @@ config certificate 'cert_cybermood_www'
|
|||||||
option type 'acme'
|
option type 'acme'
|
||||||
option enabled '1'
|
option enabled '1'
|
||||||
|
|
||||||
|
config certificate 'cert_cybermood_presse'
|
||||||
|
option domain 'presse.cybermood.eu'
|
||||||
|
option type 'acme'
|
||||||
|
option enabled '1'
|
||||||
|
|
||||||
# Certificate entry (manual or ACME)
|
# Certificate entry (manual or ACME)
|
||||||
#config certificate 'cert_example'
|
#config certificate 'cert_example'
|
||||||
# option domain 'example.com'
|
# option domain 'example.com'
|
||||||
|
|||||||
@ -64,7 +64,9 @@ frontend https-in
|
|||||||
|
|
||||||
# CyberMood.eu routing
|
# CyberMood.eu routing
|
||||||
acl is_cybermood hdr(host) -i cybermood.eu www.cybermood.eu
|
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_web if is_cybermood
|
||||||
|
use_backend cybermood_presse if is_cybermood_presse
|
||||||
|
|
||||||
default_backend default_luci
|
default_backend default_luci
|
||||||
|
|
||||||
@ -83,4 +85,10 @@ backend default_luci
|
|||||||
backend cybermood_web
|
backend cybermood_web
|
||||||
mode http
|
mode http
|
||||||
balance roundrobin
|
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user