fix: updated readme and added envrc example
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# Server Configuration
|
||||
export ADDR=":8080"
|
||||
export EXTERNAL_URL="localhost:8080"
|
||||
export FRONTEND_URL="http://localhost:5173"
|
||||
export ENV="development"
|
||||
export ALLOWED_ORIGINS="https://*,http://*" # TODO: Change to the actual allowed origins on production
|
||||
|
||||
# Database Configuration
|
||||
export DB_ADDR="postgres://postgres:postgres@localhost:5432/lk_tmpl?sslmode=disable"
|
||||
export DB_MAX_OPEN_CONNS="30"
|
||||
export DB_MAX_IDLE_CONNS="30"
|
||||
export DB_MAX_IDLE_TIME="15m"
|
||||
|
||||
# Redis Configuration
|
||||
export REDIS_ADDR="localhost:6379"
|
||||
export REDIS_PASSWORD=""
|
||||
export REDIS_DB="0"
|
||||
export REDIS_ENABLED="false"
|
||||
|
||||
# Authentication
|
||||
export BASIC_AUTH_USERNAME="admin"
|
||||
export BASIC_AUTH_PASSWORD="admin"
|
||||
export AUTH_TOKEN_SECRET="your-secret-key-here"
|
||||
export AUTH_TOKEN_EXP="24h"
|
||||
export AUTH_TOKEN_ISS="lkapi"
|
||||
export AUTH_TOKEN_AUD="lkapi"
|
||||
|
||||
# Email Configuration
|
||||
export FROM_EMAIL="[email protected]"
|
||||
export SENDGRID_API_KEY="your-sendgrid-api-key"
|
||||
|
||||
# Rate Limiter
|
||||
export RATE_LIMITER_REQS_COUNT="20"
|
||||
export RATE_LIMITER_TIME_FRAME="1m"
|
||||
export RATE_LIMITER_ENABLED="true"
|
||||
Reference in New Issue
Block a user