mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
feat: acme acl
This commit is contained in:
8
vm.py
8
vm.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user