You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue you're experiencing with the Nginx template not replacing placeholders correctly in the Docker Compose setup might be related to how environment variables or placeholders are processed during the configuration generation.
In the Dify Docker setup, the Nginx configuration is generated using template files and a script (docker-entrypoint.sh) that processes these templates. The placeholders like $scheme, $host, and $request_uri should be replaced by Nginx itself during runtime, not during the template processing. If they are not being replaced correctly, it might be due to a misconfiguration in the template or the way the script is handling the template files.
Here are a few things you can check or try:
Ensure Correct Template Syntax: Verify that the placeholders in your Nginx template files are correctly formatted. They should be written as $scheme, $host, and $request_uri without any additional characters or spaces.
Check Entrypoint Script: Make sure that the docker-entrypoint.sh script is correctly copying and processing the template files. Any errors in this script could lead to incorrect configuration generation.
Environment Variables: Ensure that any environment variables used in the template are correctly set and accessible to the Nginx container.
Nginx Configuration: Double-check the Nginx configuration to ensure that it is set up to handle these variables correctly. The placeholders should be part of the Nginx runtime configuration and not replaced during the template processing.
If these steps do not resolve the issue, you might want to look into the specific logic within the docker-entrypoint.sh script or any related configuration files to ensure they are functioning as expected.
Self Checks
Dify version
1.0.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
❌ Actual Behavior
The text was updated successfully, but these errors were encountered: