chode: remote secure postgres connection string

This commit is contained in:
Matthew McKinnon 2025-02-08 23:22:26 +10:00
parent 0500fe442f
commit 258fe4ad5a
3 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,7 @@ resource "proxmox_vm_qemu" "docker" {
cpu = "x86-64-v2-AES" cpu = "x86-64-v2-AES"
bios = "ovmf" bios = "ovmf"
startup = "order=2,up=900" startup = "order=2"
# VM Memory Settings # VM Memory Settings

View File

@ -8,6 +8,7 @@ resource "proxmox_lxc" "omada" {
ostype = "debian" ostype = "debian"
start = true start = true
startup = "order=1000" startup = "order=1000"
onboot = "true"
ssh_public_keys = <<EOF ssh_public_keys = <<EOF
${var.ssh_key} ${var.ssh_key}

View File

@ -10,9 +10,10 @@ terraform {
version = "~> 0.1.0" version = "~> 0.1.0"
} }
} }
backend "pg" { backend "pg" {
conn_str = "postgres://${var.tfusername}:${var.tfpassword}@${var.tfurl}"
} }
encryption { encryption {
key_provider "pbkdf2" "mykey" { key_provider "pbkdf2" "mykey" {
passphrase = var.passphrase passphrase = var.passphrase