-
Notifications
You must be signed in to change notification settings - Fork 45
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
Docker-compose env variables for email won't be set #325
Comments
@onlynow2 : Would you please provide the docker-compose file what you have used? Thanks. |
sure, I was using following docker-compose file: `version: "3.7" services: |
@DavidMStraub : Maybe it's more an issue of Gramps.js? The environment variables are correctly set inside of the container. I have verified it. @onlynow2 : You can check it
|
@onlynow2 can you please elaborate what you mean by "the fields are empty"? What is the actual error you are seeing? |
Is this issue this present? |
@DavidMStraub sorry for the late reply, but @ondrno is right. |
Oh, now I finally understood the problem, thank you. Yes, that's right, the "onboarding" dialog in Gramps.js doesn't know anything about the environment variables. The reason is a bit complicated - originally, Web API only allowed configuring email settings via the flask config, either via a config file or via environment variables. To implement the new web-based onboarding workflow, an additional database-based configuration layer was added that is used if present. These database-stored config options are available via the REST API. If you configure email via the environment but do not creat an admin user, the onboarding dialog will be shown but it will not know about the email settings. If you fill in the form and submit it, it will store the new settings in the database and they will override the environment settings. I don't see a reasonable way to solve this the way things are currently set up, so I suggest to simply document it. |
I'm not sure if this is the right project for this issue (or if it should be in the gramps.js project).
When setting the email environment variables in the docker-compose.yaml file, as mentioned in the documentation ) they would not get used within the neccessary fields during first startup of the created container.
The fields are empty, just if the environment variables were never set.
The text was updated successfully, but these errors were encountered: