fix: add TRANSMISSION defaults and curl timeout to production deploy
- Add :-admin defaults for TRANSMISSION_USER/PASS in docker-compose.yml to prevent crash on startup when vars are unset - Add --max-time 10 to registry mirror health check curl to prevent 2+ minute hang when mirror is unreachable Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -190,7 +190,7 @@ jobs:
|
||||
mirror_host="100.78.131.124:5501"
|
||||
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
if curl -fsS "http://${mirror_host}/v2/" >/dev/null; then
|
||||
if curl -fsS --max-time 10 "http://${mirror_host}/v2/" >/dev/null; then
|
||||
echo "Registry mirror is healthy at ${mirror_host}"
|
||||
else
|
||||
echo "Warning: registry mirror health check failed at ${mirror_host}; continuing with normal pull path"
|
||||
|
||||
@@ -53,8 +53,8 @@ services:
|
||||
- LITELLM_HEALTH_API_KEY=${LITELLM_HEALTH_API_KEY:-}
|
||||
- LITELLM_URL=http://litellm:4005
|
||||
- GITEA_DB_PASSWORD=${GITEA_DB_PASSWORD}
|
||||
- TRANSMISSION_USER=${TRANSMISSION_USER}
|
||||
- TRANSMISSION_PASS=${TRANSMISSION_PASS}
|
||||
- TRANSMISSION_USER=${TRANSMISSION_USER:-admin}
|
||||
- TRANSMISSION_PASS=${TRANSMISSION_PASS:-admin}
|
||||
volumes:
|
||||
- /volume1:/volume1
|
||||
- /volume1/docker/nas-dashboard/ssh/dashboard_terminal:/app/ssh/id_ed25519:ro
|
||||
|
||||
Reference in New Issue
Block a user