-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
App port no change after change the EXPOSE_NGINX_PORT #6505
Comments
@tiomfree Hello there! I'm here to help you with your bug report. I'm a bot that can assist with bug resolution, answer questions, and help you become a contributor. Let's work together to solve your issue while we wait for a human maintainer. To ensure that the published app URL in Dify version 0.6.14 reflects the custom port specified in the For example, if your custom port is NEXT_PUBLIC_API_PREFIX=http://192.168.50.144:8056/console/api
NEXT_PUBLIC_PUBLIC_API_PREFIX=http://192.168.50.144:8056/api Additionally, ensure that your Docker Compose setup reflects the custom port configuration. You can do this by editing the
This will ensure that the URLs generated by the application will use the specified custom port [1][2][3]. |
I don't think it works with the two items, are you sure it's defined? |
The variables
By following these steps, the published app URL should use the custom port |
This variable doesn't related to the feature you would like to change. You should read this doc instead. |
Self Checks
Dify version
0.6.14
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I can access and create app via the new port & URL after changed the port number in .env file:
HTTP port
NGINX_PORT=8056
------------------------------
Docker Compose Service Expose Host Port Configurations
------------------------------
EXPOSE_NGINX_PORT=8056
For example: http://192.168.50.144:8056/
but the new APP can not access when publish as I find the access URL keep default 80 port no change when I click the publish and "Run App" button.
For example:
The published App URL keeps as below so can't access at all:
http://192.168.50.144/chat/ssflXZpobXQo4JDlWd
it works if I change the port to 8056 as below manually:
http://192.168.50.144:8056/chat/ssflXZpobXQo4JDlWd
✔️ Expected Behavior
Expect the port of new App should be changed from default 80 as well when changed the nginx port in .ENV.
for example: when create new APP, and click the publish and "Run App" button.
http://192.168.50.144:8056/chat/ssflXZpobXQo4JDlWd
❌ Actual Behavior
the published App URL keeps as default 80 port as below so can't access at all:
http://192.168.50.144/chat/ssflXZpobXQo4JDlWd
The text was updated successfully, but these errors were encountered: