Skip to content

Commit

Permalink
Add Mysilio SMTP configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ianconsolata committed Oct 2, 2022
1 parent 10d6916 commit 540ad9f
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .deploy/values/production.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ image:
tag: {{ requiredEnv "CIRCLE_SHA1" }}
pullSecrets:
- itme-image-pull-secrets
customParameters:
- flag: smtpUser
value: {{ requiredEnv "SMTP_USER }}
- flag: smtpPassword
value: {{ requiredEnv "SMTP_PASSWORD" }}
ingress:
enabled: true
className: nginx
Expand Down
5 changes: 5 additions & 0 deletions .deploy/values/staging.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ image:
tag: {{ requiredEnv "CIRCLE_SHA1" }}
pullSecrets:
- itme-image-pull-secrets
customParameters:
- flag: smtpUser
value: {{ requiredEnv "SMTP_USER }}
- flag: smtpPassword
value: {{ requiredEnv "SMTP_PASSWORD" }}
ingress:
enabled: true
annotations:
Expand Down
14 changes: 14 additions & 0 deletions config/app/variables/resolver/resolver.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,20 @@
"key": "workers",
"defaultValue": 1
}
},
{
"CombinedShorthandResolver:_resolvers_key": "urn:solid-server:default:variable:smtpUser",
"CombinedShorthandResolver:_resolvers_value": {
"@type": "KeyExtractor",
"key": "smtpUser"
}
},
{
"CombinedShorthandResolver:_resolvers_key": "urn:solid-server:default:variable:smtpPassword",
"CombinedShorthandResolver:_resolvers_value": {
"@type": "KeyExtractor",
"key": "smtpPassword"
}
}
]
}
Expand Down
15 changes: 15 additions & 0 deletions config/identity/email/mysilio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"@context": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^5.0.0/components/context.jsonld",
"@graph": [
{
"comment": "A Mysilio specific SMTP config that uses values passed in via the cli",
"@id": "urn:solid-server:default:EmailSender",
"@type": "BaseEmailSender",
"args_senderName": "Mysilio Support <support@mysilio.com>",
"args_emailConfig_host": "email-smtp.us-west-2.amazonaws.com",
"args_emailConfig_port": 587,
"args_emailConfig_auth_user": { "@id": "urn:solid-server:default:variable:smtpUser" },
"args_emailConfig_auth_pass": { "@id": "urn:solid-server:default:variable:smtpPassword" }
}
]
}
2 changes: 1 addition & 1 deletion config/mysilio.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"css:config/http/server-factory/websockets.json",
"css:config/http/static/default.json",
"css:config/identity/access/public.json",
"css:config/identity/email/default.json",
"css:config/identity/email/mysilio.json",
"css:config/identity/handler/default.json",
"css:config/identity/ownership/token.json",
"css:config/identity/pod/static.json",
Expand Down
10 changes: 10 additions & 0 deletions config/util/variables/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@
"comment": "Run the server in multithreaded mode with the set amount of workers.",
"@id": "urn:solid-server:default:variable:workers",
"@type": "Variable"
},
{
"comment": "Supply an SMTP User",
"@id": "urn:solid-server:default:variable:smtpUser",
"@type": "Variable"
},
{
"comment": "Supply an SMTP Password",
"@id": "urn:solid-server:default:variable:smtpPassword",
"@type": "Variable"
}
]
}

0 comments on commit 540ad9f

Please sign in to comment.