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

Create an .env variable for Server Listening port - to sync the setti… #342

Closed
wants to merge 1 commit into from

Conversation

zzecool
Copy link

@zzecool zzecool commented Apr 12, 2024

…ng to nginx

What problem does this PR solve?

If you manual change the listening port of Server to somthing like this:

services:
ragflow:
depends_on:
mysql:
condition: service_healthy
es01:
condition: service_healthy
image: infiniflow/ragflow:v1.0
container_name: ragflow-server
ports:
- ${SVR_HTTP_PORT}:9380
- 3000:80
- 443:443

nginx fails to server the server because the Listening port is hardcoded in
ragflow.conf

Issue link:#[Link the issue here]

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@@ -4,6 +4,9 @@ STACK_VERSION=8.11.3
# Set the cluster name
CLUSTER_NAME=rag_flow

# Port to expose for Server HTTP to the host
LISTEN_SRV_PORT=3000
Copy link
Collaborator

@KevinHuSh KevinHuSh Apr 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename it to NGINX_PORT, and default number is 80

@KevinHuSh KevinHuSh closed this Apr 12, 2024
@KevinHuSh KevinHuSh reopened this Apr 12, 2024
@zzecool zzecool closed this by deleting the head repository May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants