1. Development
DATA SPORT
  • DATABASE-SPORT
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • Database
    • Public APi
      • Tổng quan
      • Cài đặt
      • ENV DEV
      • ENV Prod
      • Postman collection
    • Public API v3
      • Tổng quan
      • Cài đặt
    • Cron Make File
      • Tổng quan
  • GOLANG-THESPORT
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Local
      • Production
  • GOLANG-API (xe.winfast)
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Local
      • Production
  • GOLANG-KSPORT
    • Tổng quan
    • Architecture
      • System
      • Database
      • Source Code
    • Development
      • Production
  • CRONJOB-LARAVEL
    • Tổng quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • System
        • Source code
        • Database
      • Development
        • Dev
        • Production
      • Public API
        • Common API
          • League & Cup Profile (Basic)
          • Schedule & Results (Basic)
          • Match Modify Record
          • List of Countries
          • List of Bookmakers
          • Configuration instructions
        • Live animation
          • Configuration instructions
          • Schedule & Results
        • Live Data
          • Livescores for Today
          • Livescores Changes
          • Schedule & Results
          • Schedule Changes
          • Events
          • Stats
          • Corner
          • Lineups
          • Injury
          • Match List of Live Text
          • Live Text
          • Transfer
        • Profile
          • League & Cup Profile
          • Subleague Profile
          • Cup Stage Profile
          • Team Profile
          • Team Profile Copy
          • Team Profile for Search
          • Player Profile
          • Player Profile for Search
          • Referee Profile
          • Teamlist with Player Profile
        • Stats
          • Matches Analysis
          • List of Player Stats (Match)
          • Player Stats (Match)
          • List of Player Stats (League & Cup)
          • Player Stats (League & Cup)
          • League Standing (Get Subleague)
          • League Standing
          • Cup Standing
          • Top Scorer
          • FIFA Ranking
        • Odds (18 bookmakers)
          • Pre-match and In-play Odds (Main)
          • Live Odds Changes (Main)
          • Historical Odds (Main)
          • Future Odds (Main)
          • Pre-match and In-play Odds (All)
          • Live Odds Changes (All)
          • Historical Odds (All)
          • Future Odds (All)
          • European Odds (Halftime)
          • In-play Odds
          • In-play Odds (Halftime)
          • Odd Modify Record
        • European Odds (200+ Bookmakers)
          • European Odds (200+ Bookmakers)
        • Other Odds
          • Outrights
          • First/Last Team To Score (pre-match)
          • Goals Odd/Even (pre-match)
          • Goals Odd/Even (In-play)
          • Number of Goals in Match (pre-match)
          • Number of Goals in Match (In-play)
          • Half Time/Full Time (pre-match)
          • Half Time/Full Time (In-play)
          • Correct Score (pre-match)
          • Correct Score (In-play)
          • Half Time Correct Score (pre-match)
          • Half Time Correct Score (In-play)
          • Handicap Corners (pre-match)
          • Handicap Corners (In-play)
          • Total Corners (pre-match) - Tổng phạt góc trước trận đấu: First Odds
          • Total Corners (In-play) - Tổng số quả phạt góc (Trong trận) - Run Odds
          • Double Chance(pre-match)
          • EuroHandicap(pre-match)
  • GOLANG-WEBSOCKET
    • Tổng Quan
    • Logic
      • Logic tổng thể
    • Projects
      • Yêu cầu hệ thống
      • Architecture
        • System
        • Source code
      • Development
        • Dev
        • Production
      • Public API
        • API
  • LIVEANIMATION-THESPORT
    • Hướng dẫn liveaniamtion thesport
  1. Development

Local

PORT=21034
ENV=local
LOG_TYPE=file

Database Configuration (MySQL)#

# Dev#

Production#

DB_HOST=185.199.53.139
DB_PORT=23422
DB_NAME=release-db-dev
DB_USER=tgon
DB_PASSWORD=ku41vzKuB3fR0a

DB Write#

DB_HOST_WRITE=185.199.53.139
DB_PORT_WRITE=23422
DB_USER_WRITE=tgon
DB_PASSWORD_WRITE=ku41vzKuB3fR0a
DB_NAME_WRITE=release-db-dev

Redis Configuration#

REDIS_HOST=74.82.63.183
REDIS_PORT=21002
REDIS_PASSWORD=
REDIS_DB=0
REDIS_HOST_SPORT_READ=74.82.63.183
REDIS_PORT_SPORT_READ=21002
REDIS_PASSWORD_SPORT_READ=
REDIS_DB_SPORT_READ=1
REDIS_PREFIX_RAPID_SYNC=api_soccer_database_api_soccer_cache_:
REDIS_HOST_ELASTIC_SEARCH_READ=74.82.63.183
REDIS_PORT_ELASTIC_SEARCH_READ=21002
REDIS_PASSWORD_ELASTIC_SEARCH_READ=
REDIS_DB_ELASTIC_SEARCH_READ=0

JWT Configuration#

JWT_SECRET=your_jwt_secret_key_here
JWT_EXPIRES_IN=24h

Email Configuration#

SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password
SMTP_FROM=your_email@gmail.com

Cloudinary Configuration#

CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret

File Upload Configuration#

MAX_FILE_SIZE=10485760
ALLOWED_IMAGE_TYPES=jpg,jpeg,png,gif,webp
ALLOWED_VIDEO_TYPES=mp4,avi,mov,wmv,flv,webm
ALLOWED_DOCUMENT_TYPES=pdf,doc,docx,txt,rtf

Rate Limiting#

RATE_LIMIT_REQUESTS=100
RATE_LIMIT_DURATION=1m

Logging#

LOG_LEVEL=info
LOG_FILE=logs/app.log

CORS Configuration#

CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:8080
CORS_ALLOWED_METHODS=GET,POST,PUT,DELETE,OPTIONS
CORS_ALLOWED_HEADERS=Content-Type,Authorization,X-Requested-With

Database Pool Configuration#

DB_POOL_MAX_OPEN=80
DB_POOL_MAX_IDLE=20
DB_WRITE_POOL_MAX_OPEN=80

Mail Configuration#

MAIL_USER=your-email@gmail.com
MAIL_PASSWORD=your-app-password
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587

Website URL#

WEBSITE_URL=http://localhost:3000

Authentication#

AUTH_TOKEN=your-auth-token
BANK_AUTH_TOKEN=your-bank-auth-token
AUTHORIZED_IPS=127.0.0.1;::1
PASS_INSTALL=admin123

Time Configuration#

TIME_LIFE_CATCHING=3600
REDIS_TIME_LIFE_CACHING=3600
ES_ADDR=https://es.longtu.club
ES_USER=tgon
ES_PASS=SHVz0GH5Zi3nnD
ELASTIC_SEARCH_HOST=https://es.longtu.club
ELASTIC_SEARCH_USER=tgon
ELASTIC_SEARCH_PASSWORD=SHVz0GH5Zi3nnD
ES_CERT_PATH=C:/Users/luong/cart.crt
GROK_API_KEY=
GROK_API_ENDPOINT=https://api.x.ai/v1/
Modified at 2026-04-16 10:15:23
Previous
Source Code
Next
Production
Built with