Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyramid email configuration via env variables #233

Open
revolunet opened this issue Nov 29, 2020 · 3 comments
Open

Pyramid email configuration via env variables #233

revolunet opened this issue Nov 29, 2020 · 3 comments
Labels
stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.

Comments

@revolunet
Copy link

Hi, i've setup the plugin, and notifications are triggered correctly; Now i'm trying to configure MAIL_HOST and MAIL_DEFAULT_SENDER but looks like this is not configurable via env variables, only from the config file which is not ideal in my case.

While pyramid docs says one can use env vars to override configuration, i cant get it to work

Any idea where i should look to make this possible ?

@Natim
Copy link
Member

Natim commented Nov 29, 2020

According to https://github.com/Kinto/kinto/blob/master/kinto/core/utils.py#L122-L132 MAIL_HOST and MAIL_DEFAULT_SENDER should work.

@revolunet
Copy link
Author

When i add a print here, i dont see any MAIL_*. looks like there's an allowlist somewhere ? maybe related to plugins registration ?

@leplatrem
Copy link
Contributor

This could be a duplicate of Kinto/kinto#1544

@alexcottner alexcottner added the stale For marking issues as stale. Labeled issues will be closed soon if label is not removed. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants