Skip to content

Commit

Permalink
Merge pull request #3290 from threefoldtech/development_edit_gitea_sm…
Browse files Browse the repository at this point in the history
…tp_vars

Edit Gitea SMTP env vars
  • Loading branch information
zaelgohary authored Aug 13, 2024
2 parents ad38286 + 64f5c2e commit 8c2f4b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 2 additions & 0 deletions packages/playground/src/constants/deployment_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ export const deploymentListEnvironments = {
GITEA__mailer__HOST: "Email Host",
GITEA__mailer__PORT: "Email Port",
GITEA__mailer__USER: "Email Host User",
GITEA__mailer__FROM: "Send Email As",
GITEA__mailer__ENABLED: "Email Host Enabled",
GITEA__mailer__PASSWD: { label: "Email Host Password", type: "password" },
},
nostr: {
Expand Down
16 changes: 7 additions & 9 deletions packages/playground/src/weblets/tf_gitea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,13 @@ async function deploy() {
key: "GITEA__HOSTNAME",
value: domain,
},
...(smtp.value.enabled
? [
{ key: "GITEA__mailer__PROTOCOL", value: "smtp" },
{ key: "GITEA__mailer__HOST", value: smtp.value.hostname },
{ key: "GITEA__mailer__PORT", value: smtp.value.port.toString() },
{ key: "GITEA__mailer__USER", value: smtp.value.username },
{ key: "GITEA__mailer__PASSWD", value: smtp.value.password },
]
: []),
{ key: "GITEA__mailer__PROTOCOL", value: "smtp" },
{ key: "GITEA__mailer__ENABLED", value: smtp.value?.enabled.toString() },
{ key: "GITEA__mailer__HOST", value: smtp.value?.hostname },
{ key: "GITEA__mailer__FROM", value: smtp.value?.email },
{ key: "GITEA__mailer__PORT", value: smtp.value?.port.toString() },
{ key: "GITEA__mailer__USER", value: smtp.value?.username },
{ key: "GITEA__mailer__PASSWD", value: smtp.value?.password },
],
planetary: planetary.value,
mycelium: mycelium.value,
Expand Down

0 comments on commit 8c2f4b6

Please sign in to comment.