Skip to content

Commit c5c36c8

Browse files
committed
Setup smtp for cygnus
1 parent 43be101 commit c5c36c8

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

modules/docker/cygnus/cygnus.tf

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,27 @@ resource "random_password" "payload_user_password" {
1717

1818
data "gitlab_project_variable" "ga_measurement_id" {
1919
project = "code0-tech/secret-manager"
20-
key = "SCULPTOR_NEXT_PUBLIC_GA_MEASUREMENT_ID"
20+
key = "CYGNUS_NEXT_PUBLIC_GA_MEASUREMENT_ID"
21+
}
22+
23+
data "gitlab_project_variable" "smtp_host" {
24+
project = "code0-tech/secret-manager"
25+
key = "CYGNUS_SMTP_HOST"
26+
}
27+
28+
data "gitlab_project_variable" "smtp_user" {
29+
project = "code0-tech/secret-manager"
30+
key = "CYGNUS_SMTP_USER"
31+
}
32+
33+
data "gitlab_project_variable" "smtp_pass" {
34+
project = "code0-tech/secret-manager"
35+
key = "CYGNUS_SMTP_PASS"
36+
}
37+
38+
data "gitlab_project_variable" "contact_to_email" {
39+
project = "code0-tech/secret-manager"
40+
key = "CYGNUS_CONTACT_TO_EMAIL"
2141
}
2242

2343
locals {
@@ -31,6 +51,14 @@ locals {
3151
"NEXT_PUBLIC_GA_MEASUREMENT_ID=${sensitive(data.gitlab_project_variable.ga_measurement_id.value)}",
3252
"NEXT_PUBLIC_APP_URL=${var.web_urls[0]}",
3353

54+
# Cygnus SMTP
55+
"SMTP_HOST=${data.gitlab_project_variable.smtp_host.value}",
56+
"SMTP_PORT=465",
57+
"SMTP_USER=${data.gitlab_project_variable.smtp_user.value}",
58+
"SMTP_PASS=${data.gitlab_project_variable.smtp_pass.value}",
59+
"CONTACT_FROM_EMAIL=${data.gitlab_project_variable.smtp_user.value}",
60+
"CONTACT_TO_EMAIL=${data.gitlab_project_variable.contact_to_email.value}",
61+
3462
# Proxy
3563
"VIRTUAL_HOST=${join(",", var.web_urls)}"
3664
]

0 commit comments

Comments
 (0)