smgc commited on
Commit
b8f7c7a
1 Parent(s): b21e6fa

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +2 -9
entrypoint.sh CHANGED
@@ -25,14 +25,7 @@ chmod +x /project/cloudflared
25
  # 运行 cloudflared
26
  /project/cloudflared tunnel run --token ${ARGO_AUTH} &
27
 
28
- # if has CERT_FILE env and CERT_KEY env, run uvicorn with ssl
29
-
30
- if [ -n "$CERT_FILE" ] && [ -n "$CERT_KEY" ]; then
31
- echo "run uvicorn with ssl"
32
- python -m uvicorn app.main:app --host 0.0.0.0 --port 443 --ssl-keyfile $CERT_KEY --ssl-certfile $CERT_FILE $args $@
33
- else
34
- echo "run uvicorn without ssl"
35
- python -m uvicorn app.main:app --host 0.0.0.0 --port 3000 $@
36
- fi
37
 
38
  wait
 
25
  # 运行 cloudflared
26
  /project/cloudflared tunnel run --token ${ARGO_AUTH} &
27
 
28
+ # 运行 Raycast API Proxy
29
+ python -m uvicorn app.main:app --host 0.0.0.0 --port 3000 $@
 
 
 
 
 
 
 
30
 
31
  wait