Files
2026-01-08 01:15:07 +00:00

46 lines
1.0 KiB
Bash

PKG_NAME=github.com/FernandoJVideira/simple_bank
PROJ_NAME=simple_bank
SERVICE_NAME="Simple Bank"
# Server Configuration
HTTP_SERVER_ADDR=:8080
GRPC_SERVER_ADDR=:9090
EXTERNAL_URL=localhost:8080
FRONTEND_URL=http://localhost:5173
ENVIRONMENT=development
ALLOWED_ORIGINS=https://*,http://* # TODO: Change to the actual allowed origins on production
# Database Configuration
DB_ADDR=postgres://postgres:postgres@localhost:5432/simple_bank?sslmode=disable
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_MAX_OPEN_CONNS=30
DB_MAX_IDLE_CONNS=30
DB_MAX_IDLE_TIME=15m
MIGRATIONS_URL=file://cmd/db/migrations
# Redis Configuration
REDIS_ADDR=localhost:6379
REDIS_PASSWORD=
REDIS_DB=0
# Authentication
AUTH_TOKEN_SECRET=gDEt23BT2AsYzYUDu.f94mqBKLF@-w_ao
AUTH_TOKEN_MIN_KEY_SIZE=32
AUTH_TOKEN_EXP=15m
REFRESH_TOKEN_EXP=168h
AUTH_TOKEN_ISS=lkapi
AUTH_TOKEN_AUD=lkapi
# Email Configuration
EMAIL_FROM=[email protected]
EMAIL_FROM_NAME=Simple Bank
EMAIL_SMTP_PASSWORD=afyvhkfwafcedvin
# Rate Limiter
RATE_LIMITER_REQS_COUNT=20
RATE_LIMITER_TIME_FRAME=1m
RATE_LIMITER_ENABLED=true