The cron key is placed in the .env file

This commit is contained in:
Sergei Solovev 2024-04-13 14:57:39 +03:00
parent e65e06d521
commit 6a49fc1b1b
2 changed files with 4 additions and 8 deletions

View file

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

View file

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