link haproxy to flask

This commit is contained in:
Daniel afx 2022-02-04 01:40:39 +02:00
parent bc7fc08cd5
commit f70c872e18

View file

@ -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