tanbushi commited on
Commit
6fd73a5
·
1 Parent(s): 93fa8d8
Files changed (2) hide show
  1. nginx/conf.d/default.conf +5 -0
  2. prompt_his.md +2 -0
nginx/conf.d/default.conf CHANGED
@@ -645,6 +645,11 @@ server {
645
  proxy_send_timeout 300s;
646
  }
647
 
 
 
 
 
 
648
  # OpenCode API 代理 - 完整代理所有 OpenCode 端点 (v2)
649
  location /opencode/ {
650
  # 移除 /opencode 前缀
 
645
  proxy_send_timeout 300s;
646
  }
647
 
648
+ # OpenCode 根路径重定向
649
+ location = /opencode {
650
+ return 301 /opencode/;
651
+ }
652
+
653
  # OpenCode API 代理 - 完整代理所有 OpenCode 端点 (v2)
654
  location /opencode/ {
655
  # 移除 /opencode 前缀
prompt_his.md CHANGED
@@ -192,3 +192,5 @@ curl -X POST "https://airsltd-ocngx.hf.space/opencode/session/ses_45f6a6874ffejB
192
  ]
193
  }'
194
 
 
 
 
192
  ]
193
  }'
194
 
195
+ https://airsltd-ocngx.hf.space/opencode/ 可正常访问
196
+ https://airsltd-ocngx.hf.space/opencode 会指向 http://airsltd-ocngx.hf.space:7860/opencode/,不对。