feat(proxmox): automatic vm creation

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-04-26 21:58:58 +02:00
parent 0e8e07ed3e
commit f2ea03bc01
27 changed files with 247 additions and 90 deletions

View File

@@ -10,7 +10,7 @@
{% if http_port %}
{{ service.name }}.{{ domain }} {
{% for vm in service.vm %}
reverse_proxy {{ hostvars[vm].host.ip }}:{{ http_port[0] }}
reverse_proxy {{ hostvars[vm].ansible_host }}:{{ http_port[0] }}
{% endfor %}
log {
output file /var/log/caddy/{{ service.name }}.log