update
Browse files- docker-start.sh +6 -4
- nginx/{.htpasswd → .htpasswd.123} +0 -0
docker-start.sh
CHANGED
|
@@ -7,8 +7,10 @@ echo "🚀 Starting OpenResty + OpenCode Integration..."
|
|
| 7 |
# 检查环境变量
|
| 8 |
export GATEWAY_HOST=${GATEWAY_HOST:-127.0.0.1}
|
| 9 |
export GATEWAY_PORT=${GATEWAY_PORT:-3000}
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
|
| 13 |
echo "📍 OpenCode will listen on: ${GATEWAY_HOST}:${GATEWAY_PORT}"
|
| 14 |
echo "🌐 Nginx will listen on: 0.0.0.0:7860"
|
|
@@ -62,7 +64,7 @@ sleep 3
|
|
| 62 |
# 检查 OpenResty 是否正常运行
|
| 63 |
if curl -s http://localhost:7860/health > /dev/null; then
|
| 64 |
echo "✅ OpenResty started successfully"
|
| 65 |
-
echo "🔐 Basic Auth enabled: tbs/tbs123"
|
| 66 |
echo "🌐 Nginx serving: http://localhost:7860"
|
| 67 |
echo "🔗 API Gateway: http://localhost:7860/"
|
| 68 |
else
|
|
@@ -79,7 +81,7 @@ echo "📋 Available Endpoints:"
|
|
| 79 |
echo " • Main Site: http://localhost:7860/"
|
| 80 |
echo " • Health Check: http://localhost:7860/health"
|
| 81 |
echo " • OpenCode API: http://localhost:7860/"
|
| 82 |
-
|
| 83 |
echo " • API Gateway Health: http://localhost:7860/gateway/health"
|
| 84 |
echo ""
|
| 85 |
# echo "🔐 Authentication: ${USERNAME}/${PASSWORD}"
|
|
|
|
| 7 |
# 检查环境变量
|
| 8 |
export GATEWAY_HOST=${GATEWAY_HOST:-127.0.0.1}
|
| 9 |
export GATEWAY_PORT=${GATEWAY_PORT:-3000}
|
| 10 |
+
|
| 11 |
+
# 默认用户名:admin 默认密码:admin123
|
| 12 |
+
export USERNAME=${USERNAME:-admin}
|
| 13 |
+
export PASSWORD=${PASSWORD:-admin123}
|
| 14 |
|
| 15 |
echo "📍 OpenCode will listen on: ${GATEWAY_HOST}:${GATEWAY_PORT}"
|
| 16 |
echo "🌐 Nginx will listen on: 0.0.0.0:7860"
|
|
|
|
| 64 |
# 检查 OpenResty 是否正常运行
|
| 65 |
if curl -s http://localhost:7860/health > /dev/null; then
|
| 66 |
echo "✅ OpenResty started successfully"
|
| 67 |
+
# echo "🔐 Basic Auth enabled: tbs/tbs123"
|
| 68 |
echo "🌐 Nginx serving: http://localhost:7860"
|
| 69 |
echo "🔗 API Gateway: http://localhost:7860/"
|
| 70 |
else
|
|
|
|
| 81 |
echo " • Main Site: http://localhost:7860/"
|
| 82 |
echo " • Health Check: http://localhost:7860/health"
|
| 83 |
echo " • OpenCode API: http://localhost:7860/"
|
| 84 |
+
echo " • OpenCode Docs: http://localhost:7860/doc"
|
| 85 |
echo " • API Gateway Health: http://localhost:7860/gateway/health"
|
| 86 |
echo ""
|
| 87 |
# echo "🔐 Authentication: ${USERNAME}/${PASSWORD}"
|
nginx/{.htpasswd → .htpasswd.123}
RENAMED
|
File without changes
|