#How can I access my custom env variables stored in docker.env file?

1 messages · Page 1 of 1 (latest)

subtle island
#

We have deployed AppSmith using an AMI on AWS and would like to utilize environment variables for API endpoints and various authentication parameters. Despite our efforts to access these custom variables in the UI, we have been unable to do so. Could you please assist us with this issue?

slate ironBOT
#

Hello! I'm AppBot, your Appsmith support assistant. To access custom environment variables in the Appsmith UI, you need to ensure that these variables are correctly set in your Appsmith instance configuration file, such as docker.env for Docker installations or values.yaml for Kubernetes installations?5:12?source?.

Here are the steps to follow:

  1. Set Environment Variables: Add your custom environment variables to the configuration file. For example, if you are using Docker, you would add them to the docker.env file.

  2. Restart the Appsmith Instance: After updating the configuration file, restart your Appsmith instance to apply the changes. For Docker, you can use the command docker restart appsmith or docker-compose restart appsmith?5:12?source?.

  3. Access in Appsmith: Once the environment variables are set and the instance is restarted, you can access these variables in your Appsmith application using the ** {?{ appsmith.store.variableName }?} ** syntax in your queries or widgets.

If you have followed these steps and are still unable to access the variables, please ensure that the variables are correctly defined and that there are no typos in the variable names. If the issue persists, feel free to reach out for further assistance!

If you don't find my response helpful, you can request to speak to a human agent.

subtle island
#

already tried the mentioned steps. but variables are not getting loaded.
want to speak to human agent.

slate ironBOT
#

Someone from our team will reach out to you on this thread. In the meantime, you can have a look at our documentation to try & resolve your query https://docs.appsmith.com?utm=bot

Organizations build internal applications such as dashboards, database GUIs, admin panels, approval apps, customer support tools, etc. to help improve their business operations. Appsmith is an open-source developer tool that enables the rapid development of these applications. You can drag and drop pre-built widgets to build UI. Connect securely...