Actualizando detalles de home assistant y traefik

This commit is contained in:
2025-11-09 03:54:15 -03:00
parent 12f2d718e3
commit e425b0c137
3 changed files with 35 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ resource "proxmox_virtual_environment_vm" "homeassistant" {
name = "homeassistant" name = "homeassistant"
node_name = var.proxmox_node node_name = var.proxmox_node
stop_on_destroy = true agent { enabled = true }
bios = "ovmf" bios = "ovmf"

View File

@@ -4,8 +4,6 @@ http:
ipWhiteList: ipWhiteList:
sourceRange: sourceRange:
- "192.168.0.0/16" - "192.168.0.0/16"
- "10.0.0.0/8"
- "127.0.0.1/32"
redirect-to-https: redirect-to-https:
redirectScheme: redirectScheme:
scheme: https scheme: https

View File

@@ -0,0 +1,34 @@
http:
routers:
proxmox-web:
rule: Host(`proxmox.skrd.fun`)
entryPoints:
- web
middlewares:
- local-only
- redirect-to-https
service: noop
proxmox:
rule: Host(`proxmox.skrd.fun`)
entryPoints:
- websecure
service: proxmox-svc
tls:
certResolver: cf
middlewares:
- local-only
services:
proxmox-svc:
loadBalancer:
servers:
- url: "https://192.168.2.1:8006"
passHostHeader: true
serversTransport: proxmox-transport
noop:
loadBalancer:
servers:
- url: "http://0.0.0.0"
serversTransports:
proxmox-transport:
insecureSkipVerify: true