fix: use correct stream template

This commit is contained in:
2022-12-21 14:33:20 +01:00
parent feb1d8c42d
commit a046ec81e8

6
vm.py
View File

@@ -1,10 +1,6 @@
import libvirt import libvirt
import jinja2 import jinja2
HA_PROXY_STATIC_ACLS = '''
acl is_acme path -i -m beg /.well-known/acme-challenge/
'''
class VM: class VM:
environment = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath="./templates")) environment = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath="./templates"))
@@ -34,7 +30,7 @@ class VM:
# port forwarding components # # port forwarding components #
components = [] components = []
template = self.environment.get_template("nginx_server_block.conf.j2") template = self.environment.get_template("nginx_stream_block.conf.j2")
for portStruct in self.ports: for portStruct in self.ports: