Files
mixmaker/.env.example
lemintare 6b189bfce4
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / compose (push) Has been cancelled
Add global role synchronization for Discord with configurable interval
This commit introduces a new feature for global role synchronization in Discord, allowing for periodic reconciliation of managed roles. A new environment variable, `DISCORD_GLOBAL_SYNC_INTERVAL`, has been added to configure the synchronization interval, defaulting to 5 minutes. The `RoleWorker` has been updated to schedule global sync jobs, ensuring that missing managed roles are restored and extra assignments are removed without affecting unrelated server roles. Database schema changes support the new synchronization logic, and tests have been added to validate the functionality of the global reconciliation process.
2026-07-19 12:04:33 +03:00

30 lines
701 B
Plaintext

# Application
APP_ENV=development
HTTP_ADDR=:8080
PUBLIC_URL=http://localhost:5173
FRONTEND_URL=http://localhost:5173
LOG_LEVEL=info
# PostgreSQL
POSTGRES_DB=mixmaker
POSTGRES_USER=mixmaker
POSTGRES_PASSWORD=mixmaker
DATABASE_URL=postgres://mixmaker:mixmaker@localhost:5432/mixmaker?sslmode=disable
# Authentication
SESSION_TTL=168h
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_REDIRECT_URL=http://localhost:5173/api/auth/discord/callback
ADMIN_DISCORD_IDS=
# Discord event announcements (optional)
DISCORD_BOT_TOKEN=
DISCORD_ANNOUNCEMENT_CHANNEL_ID=
DISCORD_ANNOUNCEMENT_LOCALE=ru
DISCORD_GUILD_ID=
DISCORD_GLOBAL_SYNC_INTERVAL=5m
# Browser-facing build configuration
VITE_API_BASE_URL=/api