From 5e6e71e7278c0be29e684e59ed265110eca613d9 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Thu, 26 Mar 2026 17:14:16 +0200 Subject: [PATCH] novelapp: add NextAuth + Google OAuth env vars Replace AUTH_SECRET with NEXTAUTH_URL, NEXTAUTH_SECRET, GOOGLE_CLIENT_ID, and GOOGLE_CLIENT_SECRET for Google OAuth integration. --- stacks/novelapp/main.tf | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/stacks/novelapp/main.tf b/stacks/novelapp/main.tf index 14a2edfc..2f8899a9 100644 --- a/stacks/novelapp/main.tf +++ b/stacks/novelapp/main.tf @@ -123,11 +123,33 @@ resource "kubernetes_deployment" "novelapp" { value = "3000" } env { - name = "AUTH_SECRET" + name = "NEXTAUTH_URL" + value = "https://novelapp.viktorbarzin.me" + } + env { + name = "NEXTAUTH_SECRET" value_from { secret_key_ref { name = "novelapp-secrets" - key = "auth_secret" + key = "nextauth_secret" + } + } + } + env { + name = "GOOGLE_CLIENT_ID" + value_from { + secret_key_ref { + name = "novelapp-secrets" + key = "google_client_id" + } + } + } + env { + name = "GOOGLE_CLIENT_SECRET" + value_from { + secret_key_ref { + name = "novelapp-secrets" + key = "google_client_secret" } } }