Files
compor-academy/.env.example
Cauê Faleiros 3d4c72e85c
All checks were successful
CI / Validate frontend and API (push) Successful in 45s
CI / Build and publish Docker images (push) Successful in 24s
feat: improve learning and platform operations
2026-09-01 15:38:14 -03:00

25 lines
1003 B
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
SUPERADMIN_NAME=Compor HUB Superadmin
# 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