feat: acme acl

This commit is contained in:
2022-12-11 02:57:53 +01:00
parent 5f7ce0e314
commit 6d829fc5ea

8
vm.py
View File

@@ -17,14 +17,18 @@ HA_PROXY_TEMPLATE_SNI = '''
frontend {subdomain}.{basedomain}
bind 0.0.0.0:80
bind 0.0.0.0:443 {ssl}
http-request redirect scheme https unless {{ ssl_fc }}
http-request redirect scheme https unless is_acme {{ ssl_fc }}
default_backend {name}
backend {name}
server srv1 {ip} check maxconn 20
server srv1 {ip} check port 80 maxconn 20
'''
HA_PROXY_STATIC_ACLS = '''
acl is_acme path -i -m beg /.well-known/acme-challenge/
'''
class VM:
def __init__(self, args):