Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

fix: update url rule in nginx

Wentao Lyu2c1871d5baf8
diff --git a/client/nginx.conf b/client/nginx.conf
index 1924aded1e..96cfe345e7 100644
--- a/client/nginx.conf
+++ b/client/nginx.conf
@@ -2,14 +2,14 @@ server {
listen 80;
server_name localhost;
- location / {
- # Serve your React app
- root /usr/share/nginx/html;
- index index.html;
- }
-
location /api {
# Proxy requests to the API service
proxy_pass http://api:3080/api;
}
+
+ location / {
+ # Serve your React app
+ root /usr/share/nginx/html;
+ try_files $uri $uri/ /index.html;
+ }
}