Merge pull request #88 from EngineGPDev/The-cron-key-is-placed-in-the-.env-file

The cron key is placed in the .env file
This commit is contained in:
Sergei Solovev 2024-04-13 14:58:23 +03:00 committed by GitHub
commit 80cd80ecaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View file

@ -1,14 +1,12 @@
# Basic Settings
# Panel operation mode. (dev or prod)
RUN_MODE="prod"
# Site protocol http:// or https://
# Basic Settings
APP_PROTOCOL="http://"
# The URL of the site
APP_URL="example.com"
# The name of the site
APP_NAME="EngineGP"
# Site Description
APP_DESCRIPTION="EngineGP"
APP_CRONKEY="enginegp_ck"
# Database Connection Settings
DB_HOST="127.0.0.1"
@ -17,7 +15,5 @@ DB_USERNAME="enginegp_usr"
DB_PASSWORD="enginegp_pwd"
# Settings of the "Control" service
# The IP address of the site
APP_IP="192.168.1.1"
# Site subnet
APP_SUBNET="192.168.1.0/24"

View file

@ -80,7 +80,7 @@ $cfg = array(
'server_delete' => 3, // Через сколько дней удалить игровой сервер после окончания его аренды.
'steamcmd' => '/path/cmd', // Путь к steamcmd на локациях (/path/steam)
'iptables' => 'iptables_block', // Файл правил для FireWall (блокировка на уровне оборудования) (/root/_FILE_)
'cron_key' => 'CRONKEY', // Ключ для cron.php
'cron_key' => $_ENV['APP_IP'], // Ключ для cron.php
'cron_taskset' => '0', // Ядро, на котором запускать cron.php (уставновить отличный от нуля, если на VDS больше 1 ядра/потока)
// Кеш (кол-во секунд)