b0350abfbe
- Fix DB_NAME=db_yal -> mydb in api_yal .env - Add connection pool (MaxOpenConns 25, MaxIdleConns 10, ConnMaxLifetime 30m) - Replace GORM AutoMigrate with golang-migrate in api_yal and api_bb - Create embedded SQL migrations for both APIs - Add DB_SCHEMA support to api_bb config - Consolidate to single Postgres: db_bb -> schema 'bb' on db container - Remove db_bb service, bb-network, db_bb volume from compose - Remove api_tp targets from Makefile - Clean up old migrate.go
16 lines
423 B
Bash
16 lines
423 B
Bash
# DB environment variabels
|
|
DB_HOST=db_tp
|
|
DB_PORT=5432
|
|
DB_USER=postgres
|
|
DB_PASSWORD=postgres
|
|
DB_NAME=mydb
|
|
APP_PORT=8787
|
|
JWT_SECRET=secret
|
|
UPLOAD_PATH=./storage/uploads
|
|
ENVIRONMENT=development
|
|
SERVER_PORT=8080
|
|
LOG_LEVEL=debug
|
|
# настройки корс
|
|
CORS_ALLOWED_ORIGINS=http://easysite102.ru,https://easysite102.ru,http://localhost:8088,https://localhost:8088
|
|
RATE_LIMIT_ENABLED=true
|
|
RATE_LIMIT_REQUESTS_PER_SERCOND=10 |