From f70c872e188820961ed5111840b8d131815a78ad Mon Sep 17 00:00:00 2001 From: Daniel afx Date: Fri, 4 Feb 2022 01:40:39 +0200 Subject: [PATCH] link haproxy to flask --- lb/haproxy.cfg | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lb/haproxy.cfg b/lb/haproxy.cfg index 920804b..cfd3576 100644 --- a/lb/haproxy.cfg +++ b/lb/haproxy.cfg @@ -45,6 +45,9 @@ frontend http redirect scheme https if ! { path_beg -i /.well-known/acme-challenge } default_backend certbot +backend certbot + server c1 certbot:80 + frontend https bind :443 ssl crt /certificates alpn http/1.1 @@ -54,12 +57,9 @@ frontend https http-response set-header Access-Control-Max-Age 3628800 http-response set-header Access-Control-Allow-Methods "GET" - use_backend osmtile + use_backend %[req.hdr(Host),lower] -backend certbot - server c1 certbot:80 - -backend osmtile +backend map.forest.deflax.net # Get from cache / put in cache http-request cache-use mapscache http-response cache-store mapscache @@ -67,3 +67,7 @@ backend osmtile # server list server o1 osmtile:80 check +backend forest.deflax.net + # server list + server d1 flask:5000 check +