You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/config/.config.php.example

111 lines
5.4 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
#----------------------------------------邮件-------------------------------------------
$System_Config['mailDriver'] = 'smtp'; // mailgun or smtp or sendgrid
# mailgun
$System_Config['mailgun_key'] = '';
$System_Config['mailgun_domain'] = '';
$System_Config['mailgun_sender'] = '';
# smtp
$System_Config['smtp_host'] = '';
$System_Config['smtp_username'] = '';
$System_Config['smtp_port'] = '';
$System_Config['smtp_name'] = '';
$System_Config['smtp_sender'] = '';
$System_Config['smtp_passsword'] = '';
$System_Config['smtp_ssl'] = 'true';
#----------------------------------------数据库-------------------------------------------
#sspanel数据库
$System_Config['db_driver'] = 'mysql';
$System_Config['db_host'] = '127.0.0.1';
$System_Config['db_port'] = 3306;
$System_Config['db_database'] = 'ss';
$System_Config['db_username'] = 'root';
$System_Config['db_password'] = '';
$System_Config['db_charset'] = 'utf8';
$System_Config['db_collation'] = 'utf8_general_ci';
$System_Config['db_prefix'] = '';
#log数据库设置
$System_Config['enable_log']='true';
$System_Config['log_db_host']='';
$System_Config['log_db_port']=3306;
$System_Config['log_db_database']='user_log';
$System_Config['log_db_user']='root';
$System_Config['log_db_password']='';
#----------------------------------------虚拟化引擎-------------------------------------------
# PHP 与引擎部署在同一台面板服务器;宿主机仍通过 SSH 远程管理。
$System_Config['cloud_engine_url'] = 'http://127.0.0.1:8000';
# 下列两个文件由 php xcat cloudInit 生成,属于网站用户,仅网站用户可读。
$System_Config['cloud_engine_hmac_file'] = dirname(__DIR__, 2) . '/runtime/php/engine.hmac';
$System_Config['cloud_payload_key_file'] = dirname(__DIR__, 2) . '/runtime/php/payload.key';
# 可选:直接填写独立的 base64 编码 32 字节随机密钥;不要使用网站 key 代替。
$System_Config['cloud_engine_hmac_key'] = '';
$System_Config['cloud_payload_key'] = '';
$System_Config['cloud_engine_config_file'] = dirname(__DIR__, 2) . '/runtime/engine.json';
$System_Config['cloud_engine_data_dir'] = dirname(__DIR__, 2) . '/runtime/engine';
# 在线更新重启的 PHP-FPM unit;使用系统默认名称时无需修改。
$System_Config['cloud_update_php_fpm_unit'] = 'php-fpm.service';
# VNC 持续检查 PHP 会话。设为面板服务器本机可访问的网站 URL,不要指向宿主机。
$System_Config['cloud_introspection_url'] = 'http://127.0.0.1/api/internal/cloud/session-introspection';
$System_Config['cloud_introspection_host'] = '';
# 单台实例最多排队的未来续费账期,防止免费套餐或自动化请求无限写入数据库。
$System_Config['cloud_max_renewal_periods_ahead'] = 24;
# 每个账户最多保留的未删除 VPC 数量;创建请求按账户行锁串行核对。
$System_Config['cloud_max_vpcs_per_account'] = 5;
# redis
$System_Config['redis_scheme'] = 'tcp';
$System_Config['redis_host'] = '127.0.0.1';
$System_Config['redis_port'] = '6379';
$System_Config['redis_database'] = '0';
$System_Config['redis_password']="";
# redis 在线设备库,留空时自动使用上面的普通 redis 配置
$System_Config['redis_online_scheme'] = '';
$System_Config['redis_online_host'] = '';
$System_Config['redis_online_port'] = '';
$System_Config['redis_online_database'] = '';
$System_Config['redis_online_password'] = '';
#----------------------------------------超级管理员-------------------------------------------
$System_Config['super_admin'] = '1';
#---------------------杂项------------------------
#异地登陆提示
$System_Config['login_warn']='false';
#自动备份设置:仅数据库 SQL;必须配置 AES 加密口令,不打包网站或配置文件
$System_Config['enable_auto_backup']='true';
$System_Config['auto_backup_email']='';
$System_Config['auto_backup_passwd']='';
#跳转延时,ms
$System_Config['jump_delay']='1800';
#是否将登陆线程和IP绑定
$System_Config['enable_login_bind_ip']='false';
#剩余流量提醒
$System_Config['notify_limit_mode'] = 'mb'; //false为关闭,per为按照百分比提醒,mb为按照固定剩余流量提醒
$System_Config['notify_limit_value'] = '10000'; //当上一项为per时,此处填写百分比;当上一项为mb时,此处填写流量
#---------------------支付支付回调地址------------------------
$System_Config['notify_url']='https://xxx.com/paytaro/callback';
#---------------------网站基础配置------------------------
// !!! 修改此key为随机字符串确保网站安全 !!!
$System_Config['key'] = '';
$System_Config['debug'] = 'false'; // 正式环境请确保为false
$System_Config['baseUrl'] = ''; // 站点地址
$System_Config['timeZone'] = 'PRC'; // PRC 天朝时间 UTC 格林时间
$System_Config['theme'] = 'venix'; // 唯一保留的主题
$System_Config['authDriver'] = 'cookie'; // 登录验证存储方式 可选: cookie,redis
$System_Config['sessionDriver'] = 'cookie';
$System_Config['cacheDriver'] = 'cookie';
$System_Config['cookie_secure'] = 'auto'; // auto 按访问协议判断;正式环境也可强制设为 true
$System_Config['cookie_samesite'] = 'Lax'; // 推荐 Lax,兼容外部支付完成后的页面跳转
$System_Config['cookie_trust_forwarded_proto'] = 'false'; // 仅在可信反向代理终止 HTTPS 时设为 true
// 反向代理后的真实访客 IP 应在可信的 Web 服务器/代理层配置。
// 不要直接用请求中的 HTTP_X_FORWARDED_FOR 覆盖 REMOTE_ADDR。