Add ADMIN_TOKEN for admin endpoints and allow token-based auth

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-02 23:28:19 +00:00
parent d20eef76ad
commit 2081092ce8
2 changed files with 16 additions and 2 deletions

View File

@@ -50,6 +50,7 @@ services:
environment:
- REDIS_URL=redis://redis:6379/5
- DATABASE_URL=postgresql://artdag:artdag@postgres:5432/artdag
- ADMIN_TOKEN=artdag-admin-purge-token-2026
# IPFS_API multiaddr - used for all IPFS operations (add, cat, pin)
- IPFS_API=/dns/ipfs/tcp/5001
- CACHE_DIR=/data/cache