-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧(bakend) use new scaleway email gateway
We modify multiples things : * settings.py in order to manage the new way to send email with the scaleway gateway * helm template to manage new mandatory secret * helm configuration for staging/preprod/production
- Loading branch information
Showing
6 changed files
with
46 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,10 +265,12 @@ class Base(Configuration): | |
EMAIL_BACKEND = values.Value("django.core.mail.backends.smtp.EmailBackend") | ||
EMAIL_HOST = values.Value(None) | ||
EMAIL_HOST_USER = values.Value(None) | ||
EMAIL_HOST_PASSWORD = values.Value(None) | ||
EMAIL_PORT = values.PositiveIntegerValue(None) | ||
EMAIL_USE_TLS = values.BooleanValue(False) | ||
EMAIL_USE_SSL = values.BooleanValue(False) | ||
EMAIL_FROM = values.Value("[email protected]") | ||
|
||
AUTH_USER_MODEL = "core.User" | ||
INVITATION_VALIDITY_DURATION = 604800 # 7 days, in seconds | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,18 @@ backend: | |
secretKeyRef: | ||
name: backend | ||
key: DJANGO_SUPERUSER_PASSWORD | ||
DJANGO_EMAIL_HOST: "snap-mail.numerique.gouv.fr" | ||
DJANGO_EMAIL_PORT: 465 | ||
DJANGO_EMAIL_USE_SSL: True | ||
DJANGO_EMAIL_HOST: "smtp.tem.scw.cloud" | ||
DJANGO_EMAIL_PORT: 587 | ||
DJANGO_EMAIL_USE_TLS: True | ||
DJANGO_EMAIL_FROM: "[email protected]" | ||
DJANGO_EMAIL_HOST_USER: | ||
secretKeyRef: | ||
name: backend | ||
key: DJANGO_EMAIL_HOST_USER | ||
DJANGO_EMAIL_HOST_PASSWORD: | ||
secretKeyRef: | ||
name: backend | ||
key: DJANGO_EMAIL_HOST_PASSWORD | ||
DJANGO_SILENCED_SYSTEM_CHECKS: security.W008,security.W004 | ||
OIDC_OP_JWKS_ENDPOINT: https://fca.integ01.dev-agentconnect.fr/api/v2/jwks | ||
OIDC_OP_AUTHORIZATION_ENDPOINT: https://fca.integ01.dev-agentconnect.fr/api/v2/authorize | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,18 @@ backend: | |
secretKeyRef: | ||
name: backend | ||
key: DJANGO_SUPERUSER_PASSWORD | ||
DJANGO_EMAIL_HOST: "snap-mail.numerique.gouv.fr" | ||
DJANGO_EMAIL_PORT: 465 | ||
DJANGO_EMAIL_USE_SSL: True | ||
DJANGO_EMAIL_HOST: "smtp.tem.scw.cloud" | ||
DJANGO_EMAIL_PORT: 587 | ||
DJANGO_EMAIL_USE_TLS: True | ||
DJANGO_EMAIL_FROM: "[email protected]" | ||
DJANGO_EMAIL_HOST_USER: | ||
secretKeyRef: | ||
name: backend | ||
key: DJANGO_EMAIL_HOST_USER | ||
DJANGO_EMAIL_HOST_PASSWORD: | ||
secretKeyRef: | ||
name: backend | ||
key: DJANGO_EMAIL_HOST_PASSWORD | ||
DJANGO_SILENCED_SYSTEM_CHECKS: security.W008,security.W004 | ||
OIDC_OP_JWKS_ENDPOINT: https://auth.agentconnect.gouv.fr/api/v2/jwks | ||
OIDC_OP_AUTHORIZATION_ENDPOINT: https://auth.agentconnect.gouv.fr/api/v2/authorize | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,18 @@ backend: | |
secretKeyRef: | ||
name: backend | ||
key: DJANGO_SUPERUSER_PASSWORD | ||
DJANGO_EMAIL_HOST: "snap-mail.numerique.gouv.fr" | ||
DJANGO_EMAIL_PORT: 465 | ||
DJANGO_EMAIL_USE_SSL: True | ||
DJANGO_EMAIL_HOST: "smtp.tem.scw.cloud" | ||
DJANGO_EMAIL_PORT: 587 | ||
DJANGO_EMAIL_USE_TLS: True | ||
DJANGO_EMAIL_FROM: "[email protected]" | ||
DJANGO_EMAIL_HOST_USER: | ||
secretKeyRef: | ||
name: backend | ||
key: DJANGO_EMAIL_HOST_USER | ||
DJANGO_EMAIL_HOST_PASSWORD: | ||
secretKeyRef: | ||
name: backend | ||
key: DJANGO_EMAIL_HOST_PASSWORD | ||
DJANGO_SILENCED_SYSTEM_CHECKS: security.W008,security.W004 | ||
OIDC_OP_JWKS_ENDPOINT: https://fca.integ01.dev-agentconnect.fr/api/v2/jwks | ||
OIDC_OP_AUTHORIZATION_ENDPOINT: https://fca.integ01.dev-agentconnect.fr/api/v2/authorize | ||
|