Files
mixmaker/.env.example
lemintare ae19c03542
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / compose (push) Has been cancelled
Add Discord event announcement functionality to backend
This commit introduces a new Discord event announcer to the backend, allowing for event announcements via Discord. It includes the addition of new environment variables for Discord configuration in `.env.example` and `compose.yaml`. The `main.go` file has been updated to initialize the announcer, and a new `discord` package has been created, containing the announcer logic and tests. Additionally, the service layer has been modified to support bracket draft management, enhancing the overall event workflow. Integration tests have been updated to ensure proper functionality of the new features.
2026-07-19 11:21:11 +03:00

28 lines
651 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
# Browser-facing build configuration
VITE_API_BASE_URL=/api