Files
compor-academy/.env.example
Cauê Faleiros 9b6fea4b81
All checks were successful
CI / Validate frontend and API (push) Successful in 1m58s
CI / Build and publish Docker images (push) Successful in 22s
feat: complete platform operations roadmap
2026-09-04 10:07:07 -03:00

40 lines
1.5 KiB
Plaintext

# Frontend (Vite): only values that are safe to expose in the browser belong here.
VITE_API_URL=http://localhost:3001
# API and PostgreSQL
APP_ENV=development
API_PORT=3001
DATABASE_URL=postgres://compor:compor_local_password@localhost:5433/compor_hub
FRONTEND_ORIGIN=http://localhost:3000
# Required in production. The development fallback must never be used outside localhost.
JWT_SECRET=replace-this-with-a-long-random-secret-before-deploying
# In Docker/Portainer, these create or update the superadmin every time the API starts.
# Keep them out of Git and use a password with at least 12 characters.
SUPERADMIN_EMAIL=admin@example.com
SUPERADMIN_PASSWORD=change-this-password
AUTH_RATE_LIMIT_MAX=10
AUTH_RATE_LIMIT_WINDOW_SECONDS=900
JWT_SESSION_TTL=7d
INVITATION_TTL_HOURS=168
PASSWORD_RESET_TTL_HOURS=24
AUDIT_LOG_PAGE_SIZE=50
SUPERADMIN_NAME=Compor HUB Superadmin
# Bunny Stream. Set all three in Portainer to enable instructor uploads and
# signed embedded playback. Keep every value server-side; none are VITE_ vars.
BUNNY_STREAM_LIBRARY_ID=
BUNNY_STREAM_API_KEY=
BUNNY_EMBED_TOKEN_KEY=
# Bunny Read-Only API key. Required only if Bunny webhooks are enabled.
BUNNY_WEBHOOK_SECRET=
BUNNY_EMBED_TOKEN_TTL_SECONDS=600
# Must not exceed the 5 GB Nginx proxy limit declared in docker/nginx.conf.
BUNNY_MAX_UPLOAD_MB=5120
# Docker Swarm / Portainer image tags. The defaults are the Gitea Container Registry images.
API_IMAGE=gitea.blyzer.com.br/blyzer/compor-academy-api
WEB_IMAGE=gitea.blyzer.com.br/blyzer/compor-academy-web
IMAGE_TAG=latest