1. Public APi
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
    • 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-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
  1. Public APi

Cài đặt

Hướng dẫn cài đặt Wsport API
Thông tin nhánh
Nhánh Production: release-db
Link nhánh Production:
https://git.nospace.network/thscore/WinAdsSoccer/-/tree/release-db?ref_type=heads
1.
Yêu cầu hệ thống (Prerequisites)
PHP 8.3
2. Các bước cài đặt
Bước 1: Clone và chuyển sang nhánh Production
Bashgit clone https://git.nospace.network/thscore/WinAdsSoccer/-/tree/release-db?ref_type=heads
git release-db
Bước 2: Cài đặt Dependencies
composer install
3.
Chạy ứng dụng
Lệnh chạy chính thức (Production):
php artisan serve
4.
Environment Variables (.env) – Phiên bản Production
Dưới đây là mẫu .env đã gộp và tối ưu cho môi trường Production:
APP_NAME=ThscoreDB
APP_ENV=local
APP_KEY=base64:ZYtoQCCi06SbabNMpSapNtYfS3cdbAPr+V70lmhqKzk=
APP_DEBUG=true
APP_URL=http://127.0.0.1:8000
SELENIUM_URL=http://localhost:4444/wd/hub
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=thscore.cluster-ro-ctqmyks801ro.ap-southeast-1.rds.amazonaws.com
DB_PORT=3306
DB_DATABASE=bgnshwhs321
DB_USERNAME=bgnshwhs321
DB_PASSWORD=
DB_CONNECTION=mysql
DB_HOST_READ=thscore.cluster-ro-ctqmyks801ro.ap-southeast-1.rds.amazonaws.com
DB_PORT_READ=3306
DB_DATABASE_READ=bgnshwhs321
DB_USERNAME_READ=bgnshwhs321
DB_PASSWORD_READ=
DB_CONNECTION=mysql
DB_HOST_WRITE=thscore.cluster-ro-ctqmyks801ro.ap-southeast-1.rds.amazonaws.com
DB_PORT_WRITE=3306
DB_DATABASE_WRITE=bgnshwhs321
DB_USERNAME_WRITE=bgnshwhs321
DB_PASSWORD_WRITE=
BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=185.199.53.139
REDIS_PORT=23423
REDIS_PASSWORD=null
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_APP_NAME="APPN​AME"VITEP​USHERA​PPK​EY="{PUSHER_APP_KEY}"
VITE_PUSHER_HOST="PUSHERH​OST"VITEP​USHERP​ORT="{PUSHER_PORT}"
VITE_PUSHER_SCHEME="PUSHERS​CHEME"VITEP​USHERA​PPC​LUSTER="{PUSHER_APP_CLUSTER}"
API_KEY="4VI7bzCv23LvrCvf"
DOMAIN_VI="thscore-db.longtu.club"
CRONJOB_API=on
CRONJOB_MAKE_FILE=on
CHATGPT_API_ENDPOINT=https://api.openai.com/v1/
CHATGPT_API_KEY=sk-proj-FiSvFbYNEYiO3j8zp0JXT3BlbkFJvQ0iE3Qs13Vui1QWSmz8
AWS_ACCESS_KEY_ID=AKIATCKAQAXNUB5A2C6R
AWS_SECRET_ACCESS_KEY=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
AWS_DEFAULT_REGION=ap-southeast-1
AWS_WEBSOCKET_ENDPOINT=wss://27i5rws9u0.execute-api.ap-southeast-1.amazonaws.com/production
AWS_USE_PATH_STYLE_ENDPOINT=false
AWS_TABLE_DYNAMODB=WebSocketConnections;
AWS_VERSION=2018-11-29;
VITE_AWS_WEBSOCKET_ENDPOINT="${AWS_WEBSOCKET_ENDPOINT}"
AWS_STATUS_WEBSOCKET=off

CDN & S3#

AWS_ACCESS_KEY_ID=AKXVCHFE3ABLJP3H5D9S
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=auto
AWS_ENDPOINT=https://35666.oss.swiftserve.com
AWS_USE_PATH_STYLE_ENDPOINT=true

Lưu file lên s3#

AWS_BUCKET_DATA=cdn-sport-dev

Lưu img lên s3#

AWS_BUCKET=cdn-sport-dev

Lưu ở cả disk và s3#

DISK=s3
S3_TYPE=total
DEFAULT_LANGUAGE="en"
AUTH=db/1
PROXY_CHECK=TRUE
MATCHES_DB_CHECK=TRUE
MATCHES_DB_URL=https://thscore-db.longtu.club
DB_API=https://db.thscore.to
DOMAIN_KSPORT_LOCAL=http://18.143.120.88:50001
DB_AUTH_URL=https://thscore-db.longtu.club
DB_BASIC_AUTH='Basic ZGI6MQ=='
HOT_LEAGUE_URL=https://35666.oss.swiftserve.com/cdn-sport/uploads/admin-sport/countries_leagues.json
PIN_LEAGUE_URL=https://35666.oss.swiftserve.com/cdn-sport/uploads/admin-sport/pinned_countries_leagues.json
AI_DOMAIN = http://185.199.53.139:8000/predict
GROK_API_KEY=
GROK_API_ENDPOINT=https://api.x.ai/v1/
PUBLIC_PATH=http://127.0.0.1:5000/v3/api/odds
ROCKET_CHAT_URL=https://rocket-chat-dev.nospace.network/
ROCKET_CHAT_USERNAME=thec
ROCKET_CHAT_PASSWORD=
Modified at 2026-03-30 08:26:30
Previous
Tổng quan
Next
Tổng quan
Built with