link haproxy to flask
This commit is contained in:
parent
bc7fc08cd5
commit
f70c872e18
1 changed files with 9 additions and 5 deletions
|
@ -45,6 +45,9 @@ frontend http
|
||||||
redirect scheme https if ! { path_beg -i /.well-known/acme-challenge }
|
redirect scheme https if ! { path_beg -i /.well-known/acme-challenge }
|
||||||
default_backend certbot
|
default_backend certbot
|
||||||
|
|
||||||
|
backend certbot
|
||||||
|
server c1 certbot:80
|
||||||
|
|
||||||
frontend https
|
frontend https
|
||||||
bind :443 ssl crt /certificates alpn http/1.1
|
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-Max-Age 3628800
|
||||||
http-response set-header Access-Control-Allow-Methods "GET"
|
http-response set-header Access-Control-Allow-Methods "GET"
|
||||||
|
|
||||||
use_backend osmtile
|
use_backend %[req.hdr(Host),lower]
|
||||||
|
|
||||||
backend certbot
|
backend map.forest.deflax.net
|
||||||
server c1 certbot:80
|
|
||||||
|
|
||||||
backend osmtile
|
|
||||||
# Get from cache / put in cache
|
# Get from cache / put in cache
|
||||||
http-request cache-use mapscache
|
http-request cache-use mapscache
|
||||||
http-response cache-store mapscache
|
http-response cache-store mapscache
|
||||||
|
@ -67,3 +67,7 @@ backend osmtile
|
||||||
# server list
|
# server list
|
||||||
server o1 osmtile:80 check
|
server o1 osmtile:80 check
|
||||||
|
|
||||||
|
backend forest.deflax.net
|
||||||
|
# server list
|
||||||
|
server d1 flask:5000 check
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue