novelapp: migrate NEXTAUTH env vars to Auth.js v5 (AUTH_*)
Replace NEXTAUTH_URL/NEXTAUTH_SECRET with AUTH_URL/AUTH_SECRET and add AUTH_TRUST_HOST=true for Auth.js v5 compatibility.
This commit is contained in:
parent
c71a784e1c
commit
7ad01661f0
1 changed files with 7 additions and 3 deletions
|
|
@ -123,18 +123,22 @@ resource "kubernetes_deployment" "novelapp" {
|
||||||
value = "3000"
|
value = "3000"
|
||||||
}
|
}
|
||||||
env {
|
env {
|
||||||
name = "NEXTAUTH_URL"
|
name = "AUTH_URL"
|
||||||
value = "https://novelapp.viktorbarzin.me"
|
value = "https://novelapp.viktorbarzin.me"
|
||||||
}
|
}
|
||||||
env {
|
env {
|
||||||
name = "NEXTAUTH_SECRET"
|
name = "AUTH_SECRET"
|
||||||
value_from {
|
value_from {
|
||||||
secret_key_ref {
|
secret_key_ref {
|
||||||
name = "novelapp-secrets"
|
name = "novelapp-secrets"
|
||||||
key = "nextauth_secret"
|
key = "auth_secret"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
env {
|
||||||
|
name = "AUTH_TRUST_HOST"
|
||||||
|
value = "true"
|
||||||
|
}
|
||||||
env {
|
env {
|
||||||
name = "GOOGLE_CLIENT_ID"
|
name = "GOOGLE_CLIENT_ID"
|
||||||
value_from {
|
value_from {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue