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

102 lines
4.7 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
# 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'] = '';
# The sender display name comes from Site Settings -> Default title.
$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 数据密封主密钥,用途隔离后保护任务、凭据与宿主机 Agent API 密钥。
$System_Config['cloud_data_key_file'] = dirname(__DIR__, 2) . '/runtime/php/data.key';
# 可选:直接填写独立的 base64 编码 32 字节随机密钥;不要使用网站 key 代替。
$System_Config['cloud_data_key'] = '';
# 必须与 runtime/agent-gateway.json 的 panel_shared_secret 完全一致。
$System_Config['cloud_agent_gateway_secret'] = 'REPLACE_ME';
# PHP 只通过本机 Agent Gateway 向当前已连接的宿主机下发请求。
$System_Config['cloud_agent_gateway_url'] = 'http://127.0.0.1:8001/internal/agent/request';
# 单台实例最多排队的未来续费账期,防止免费套餐或自动化请求无限写入数据库。
$System_Config['cloud_max_renewal_periods_ahead'] = 24;
# 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。