Update entrypoint.sh
Browse files- 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 |
-
#
|
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
|