fixes last

This commit is contained in:
root 2025-09-20 20:20:14 +00:00
parent 9f2e746163
commit e786142391
2 changed files with 18 additions and 2 deletions

View File

@ -34,6 +34,7 @@ services:
volumes:
- ${BACKEND_LOGS_DIR_HOST:-./app-logs}:/app/logs
- ${BACKEND_DATA_DIR_HOST:-./dynamicStorage}:/app/data
- ${TUSD_DATA_DIR_HOST:-./data/tusd}:/data
ports:
- "${BACKEND_HTTP_PORT:-8080}:${SANIC_PORT:-8080}"
healthcheck:
@ -104,6 +105,7 @@ services:
volumes:
- ${BACKEND_LOGS_DIR_HOST:-./app-logs}:/app/logs
- ${BACKEND_DATA_DIR_HOST:-./dynamicStorage}:/app/data
- ${TUSD_DATA_DIR_HOST:-./data/tusd}:/data
restart: unless-stopped
networks: [mynet]
@ -125,6 +127,7 @@ services:
volumes:
- ${BACKEND_LOGS_DIR_HOST:-./app-logs}:/app/logs
- ${BACKEND_DATA_DIR_HOST:-./dynamicStorage}:/app/data
- ${TUSD_DATA_DIR_HOST:-./data/tusd}:/data
restart: unless-stopped
networks: [mynet]
@ -146,6 +149,7 @@ services:
volumes:
- ${BACKEND_LOGS_DIR_HOST:-./app-logs}:/app/logs
- ${BACKEND_DATA_DIR_HOST:-./dynamicStorage}:/app/data
- ${TUSD_DATA_DIR_HOST:-./data/tusd}:/data
restart: unless-stopped
networks: [mynet]
@ -167,6 +171,7 @@ services:
volumes:
- ${BACKEND_LOGS_DIR_HOST:-./app-logs}:/app/logs
- ${BACKEND_DATA_DIR_HOST:-./dynamicStorage}:/app/data
- ${TUSD_DATA_DIR_HOST:-./data/tusd}:/data
- /var/run/docker.sock:/var/run/docker.sock # required by conversion pipeline
restart: unless-stopped
networks: [mynet]

View File

@ -17,8 +17,19 @@ ipfs config --json Reprovider '{ "Interval": "22h", "Strategy": "pinned+mfs" }'
# Keep connection manager within reasonable bounds
ipfs config --json Swarm.ConnMgr '{ "Type": "basic", "LowWater": 50, "HighWater": 200, "GracePeriod": "20s" }'
# Disable public AutoConf when running with a private swarm key
ipfs config --json AutoConf.Enabled false
SWARM_KEY_PATH="/data/ipfs/swarm.key"
# Disable AutoConf only when running with a private swarm key
if [ -f "$SWARM_KEY_PATH" ] && [ -s "$SWARM_KEY_PATH" ]; then
ipfs config --json AutoConf.Enabled false
ipfs config --json AutoTLS.Enabled false
ipfs config Bootstrap --json "[]"
ipfs config --json DNS.Resolvers "{}"
ipfs config --json Ipns.DelegatedPublishers "[]"
ipfs config --json Swarm.Transports.Network '{ "TCP": true, "Websocket": false }'
else
ipfs config --json AutoConf.Enabled true
fi
# CORS for RPC API (visible only in docker network)
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'