feat: v2 rewrite — hexagonal arch, ActivityPub federation, NATS, deployment-ready #1

Merged
GKaszewski merged 334 commits from v2 into master 2026-05-16 09:42:43 +00:00
Showing only changes of commit 0734ef20c6 - Show all commits

27
.env
View File

@@ -1,27 +0,0 @@
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=thoughts
HOST=0.0.0.0
PORT=8000
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/thoughts"
JWT_SECRET=secret
# Public base URL — used for ActivityPub actor URLs and canonical links
BASE_URL=http://localhost:8000
# CORS — comma-separated allowed origins, or * for permissive (default: *)
CORS_ORIGINS=*
# CORS_ORIGINS=https://your-nextjs-app.example.com
# Rate limiting — max requests per minute per IP (disabled by default)
# RATE_LIMIT=60
ALLOW_REGISTRATION=true # set to false to disable new sign-ups
RUST_ENV=development # set to "production" to disable AP debug mode
# NATS event bus (optional — federation and notifications still work without it,
# but events will not be delivered to the worker)
NATS_URL=nats://localhost:4222
# Logging
RUST_LOG=info