- Frontend: Next.js 15 (App Router), Auth.js v5, shadcn/ui, MagicUI - Backend: Go + Gin + GORM with layered architecture - Auth: Local credentials login with optional Keycloak OAuth binding - Admin: RBAC user management for admin role - Dev: Docker Compose with hot reload for both frontend and backend - Docker: 3-service orchestration (frontend, backend, postgres) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
485 B
Plaintext
19 lines
485 B
Plaintext
# Database
|
|
POSTGRES_USER=evan
|
|
POSTGRES_PASSWORD=evanpass
|
|
POSTGRES_DB=evanpage
|
|
DATABASE_URL=postgres://evan:evanpass@db:5432/evanpage?sslmode=disable
|
|
|
|
# Backend
|
|
SERVER_PORT=8080
|
|
SERVER_API_URL=http://backend:8080
|
|
|
|
# Auth.js / Frontend
|
|
AUTH_SECRET=your-random-secret-min-32-chars-long
|
|
NEXT_PUBLIC_API_URL=http://localhost:8080
|
|
|
|
# Keycloak
|
|
AUTH_KEYCLOAK_ID=evanpage-frontend
|
|
AUTH_KEYCLOAK_SECRET=your-keycloak-client-secret
|
|
AUTH_KEYCLOAK_ISSUER=https://keycloak.liukersun.com/realms/evan
|