We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7879f commit 76f27b1Copy full SHA for 76f27b1
1 file changed
modules/docker/cygnus/cygnus.tf
@@ -15,6 +15,11 @@ resource "random_password" "payload_user_password" {
15
length = 32
16
}
17
18
+data "gitlab_project_variable" "ga_measurement_id" {
19
+ project = "code0-tech/secret-manager"
20
+ key = "SCULPTOR_NEXT_PUBLIC_GA_MEASUREMENT_ID"
21
+}
22
+
23
locals {
24
cygnus_env = [
25
# Cygnus
@@ -23,6 +28,7 @@ locals {
28
"PAYLOAD_USER_PASS=${random_password.payload_user_password.result}",
29
"DATABASE_URL=postgresql://cygnus:${random_password.db.result}@${docker_container.postgres.hostname}:5432/payload",
30
"HOSTNAME=0.0.0.0",
31
+ "NEXT_PUBLIC_GA_MEASUREMENT_ID=${sensitive(data.gitlab_project_variable.ga_measurement_id.value)}",
26
32
27
33
# Proxy
34
"VIRTUAL_HOST=${var.web_url}"
0 commit comments