PUG 統計的 Web 應用程式。
我們的支持不和諧可以在這裡找到。
B3none - 開發人員/維修人員
為了保持插件的最新版本,我建議查看存儲庫

如果您欣賞該項目,請花時間為我們的儲存庫加註星標。

以下步驟都是在假設您使用 Ubuntu 的情況下編寫的。
sudo apt install apache2 composer openssl php php-mysql php-json php-simplexml mysql-server zip unzip -y
sudo apt install apache2 composer openssl php7.2 php7.2-mysql php7.2-json php7.2-simplexml mariadb-server zip unzip -y
sudo apt install apache2 composer openssl php7.3 php7.3-mysql php7.3-json php7.3-simplexml mariadb-server zip unzip -y
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -sudo apt-get install nodejs install nodejsnpm -vnode -vcurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bashnvm install 10.19nvm use 10.19npm -vnode -vcd /var/www/rm -rf html/刪除 html 目錄sudo a2dissite 000-default.conf 。sudo a2enmod rewrite 。git clone https://github.com/csgo-league/csgo-league-webcd csgo-league-web/composer installnpm isudo npm i -g gulpgulp buildmysql_secure_installation 。mysql -u root -p登入 MYSQL。 CREATE USER 'league'@'%' IDENTIFIED BY '{password}';
CREATE DATABASE panel CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON panel.* TO 'league'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
然後編輯 MYSQL Conf 以允許外部連接到資料庫。 nano /etc/mysql/mysql.conf.d/mysqld.cnf並將bind-address改為0.0.0.0
現在使用sudo service mysql restart重新啟動 MySQL 服務
接下來,我們將配置 Web 面板以使用我們的資料庫並與機器人和遊戲伺服器進行通訊。
cd /var/www/csgo-league-web
cp env.example.php env.php
nano env.php
使用您的資訊填寫所有字段,例如 MySQL、伺服器、RCON 和唯一 API 金鑰。您可以使用env.php檔案中提供的連結產生 API 金鑰。
完成後使用./vendor/bin/phpmig migrate遷移資料庫
league CNAME 指向您的專用伺服器。cd /etc/apache2/sites-availablenano csgo-league-web.conf <VirtualHost *:80>
ServerName league.your.domain
DocumentRoot /var/www/csgo-league-web/web
<Directory /var/www/csgo-league-web/web>
Options -Indexes
AllowOverride All
FallbackResource /index.php
</Directory>
</VirtualHost>
sudo a2ensite csgo-league-web.conf最後確保在/csgo-league-web目錄中chown -R www-data:www-data app 。
你應該已經準備好了!
https://github.com/Rob--W/cors-anywhere或git clone https://github.com/Rob--W/cors-anywhere.gitscreen或替代方案在背景執行此程式碼 cd cors-anywhere
node server.js
/var/www/csgo-league-web/assets/scripts/listeners/steam-profile.js ,axios.get(`http://{YOUR IP}:8080/https://steamcommunity.com/profiles/${steam}?xml=true`){YOUR IP}更改為伺服器的 IP。 cd /var/www/csgo-league-web/
gulp build
PS:不要忘記清理網頁瀏覽器的快取。
too many redirects錯誤,請嘗試將env.php 'WEBSITE' => '/home'更改為'WEBSITE' => ''