chore: add generated admin token to env files

This commit is contained in:
Hiro
2026-03-28 11:36:45 +00:00
parent bc6e00e654
commit c3e48596f3
3 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ PORT=3000
NODE_ENV=development
# Auth - generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ADMIN_TOKEN=dev-admin-token-change-in-production
ADMIN_TOKEN=4f7f6b4326aa2192e7fc1d1df6ba15bb9c43c55d2065f3573c613946e82b3f72
# Data
DATA_ROOT=./data

View File

@@ -5,7 +5,7 @@ PORT=3000
NODE_ENV=production
# Auth
ADMIN_TOKEN=change-me-in-production
ADMIN_TOKEN=4f7f6b4326aa2192e7fc1d1df6ba15bb9c43c55d2065f3573c613946e82b3f72
# Data
DATA_ROOT=./data

View File

@@ -8,9 +8,9 @@ services:
environment:
- NODE_ENV=production
- PORT=3000
- ADMIN_TOKEN=${SIMPLENOTE_ADMIN_TOKEN}
- ADMIN_TOKEN=${ADMIN_TOKEN}
- DATA_ROOT=/app/data
- CORS_ORIGIN=${SIMPLENOTE_CORS_ORIGIN:-*}
- CORS_ORIGIN=${CORS_ORIGIN:-*}
volumes:
- simplenote-data:/app/data
healthcheck: