no message

This commit is contained in:
hellcat 2025-10-03 19:25:21 +08:00
parent b06b83f75c
commit b46b242b0f

181
config/.config_f.php Executable file
View File

@ -0,0 +1,181 @@
<?php
//new
$_ENV['aff_draw_need'] = 200;
$_ENV['aff_reward_gb'] = 3;
$_ENV['aff_draw_fee_rate'] = 6;
$_ENV['url_doc_base'] = 'doc.福云.com';
$_ENV['user_outClass'] = 0;
$_ENV['user_freeClass'] = 1;
$_ENV['user_payClass'] = 2; // 付款的用户等级 大于
$_ENV['tgToken']['base'] = '7682111334:AAHXoHYa-4bmzcZTUM622mFGubwjsy6VuuQ';
$_ENV['tgChat']['base'] = -4668400285;
// gembox客户端配置日后分离
$_ENV['remote_url']['xiaofu'] = '福云.com';
$_ENV['remote_url']['crc'] = '福云.com';
$_ENV['remote_url']['test'] = 'test.test';
$_ENV['gembox_client_key'] = 'nijiushigedashabiwocainide';
// gembox服务端配置
$_ENV['gembox_server_token'] = 'nijiushigedashabiwocainide';
$_ENV['tom_token'] = 'nijiushigedashabiwocaonide'; // 取代gembox token
//测试
$_ENV['is_loc'] = true;
// 添加
$_ENV['site_code'] = 'fu'; //别名
$_ENV['short_url'] = '福云.com'; // 处理访客来源
//基本设置---------------------------------------------------------------------------------------------------------------
$_ENV['key'] = 'xcvjklk12k3lksjdkfljklsd123zzlk'; // Cookie加密密钥请务必修改此key为随机字符串
$_ENV['pwdMethod'] = 'bcrypt'; // 密码加密 可选 bcrypt, argon2i, argon2id
$_ENV['salt'] = ''; // bcrypt/argon2i/argon2id 会忽略此项
$_ENV['debug'] = true; // debug模式开关生产环境请保持为false
$_ENV['appName'] = '福云'; // 站点名称
$_ENV['app_name_en'] = 'fuyun';
$_ENV['baseUrl'] = 'https://福云.com'; // 站点地址必须以https://开头,不要以/结尾
// WebAPI
$_ENV['webAPI'] = true; // 是否开启WebAPI功能
$_ENV['webAPIUrl'] = $_ENV['baseUrl']; // WebAPI地址如需和站点地址相同请不要修改
$_ENV['muKey'] = 'nijiushigedashabi'; // WebAPI密钥用于节点服务端与面板通信请务必修改此key为随机字符串
$_ENV['checkNodeIp'] = false; // 是否webapi验证节点ip
//数据库设置--------------------------------------------------------------------------------------------------------------
// db_host|db_socket 二选一,若设置 db_socket 则 db_host 会被忽略,不用请留空
// db_host 例: localhost可解析的主机名, 127.0.0.1IP 地址)
// db_socket 例:/var/run/mysqld/mysqld.sock需使用绝对地址
$_ENV['db_host'] = '127.0.0.1';
$_ENV['db_socket'] = '';
$_ENV['db_database'] = 'v2_fu'; // 数据库名
$_ENV['db_username'] = 'hotdog'; // 数据库用户名
$_ENV['db_password'] = 'hotshotgg'; // 用户密码
$_ENV['db_port'] = '3306'; // 端口
#读写分离相关配置
$_ENV['enable_db_rw_split'] = false; // 是否开启读写分离
$_ENV['read_db_hosts'] = ['']; // 从库地址,可配置多个
$_ENV['write_db_host'] = ''; // 主库地址
#高级
$_ENV['db_charset'] = 'utf8mb4';
$_ENV['db_collation'] = 'utf8mb4_unicode_ci';
$_ENV['db_prefix'] = '';
//Redis设置--------------------------------------------------------------------------------------------------------------
$_ENV['redis_host'] = '127.0.0.1'; // Redis地址使用unix domain socket时填写文件路径
$_ENV['redis_port'] = 6379; // Redis端口使用unix domain socket时填写-1
$_ENV['redis_connect_timeout'] = 2.0; // Redis连接超时时间单位秒
$_ENV['redis_read_timeout'] = 8.0; // Redis读取超时时间单位秒
$_ENV['redis_username'] = ''; // Redis用户名留空则不使用用户名连接
$_ENV['redis_password'] = ''; // Redis密码留空则无密码
$_ENV['redis_ssl'] = false; // 是否使用SSL连接Redis如果使用了SSL那么Redis端口应为Redis实例的TLS端口
$_ENV['redis_ssl_context'] = []; // 使用SSL时的上下文选项参考 https://www.php.net/manual/zh/context.ssl.php
//Rate Limit 设置--------------------------------------------------------------------------------------------------------
$_ENV['enable_rate_limit'] = true; // 是否开启请求限制
$_ENV['rate_limit_sub_ip'] = 10; // 每分钟每个IP的订阅链接请求限制
$_ENV['rate_limit_sub'] = 10; // 每分钟每个用户的订阅链接请求限制
$_ENV['rate_limit_webapi_ip'] = 120; // 每分钟每个IP的WebAPI请求限制
$_ENV['rate_limit_webapi'] = 1200; // 每分钟WebAPI全局请求限制
$_ENV['rate_limit_user_api_ip'] = 60; // 每分钟每个IP的用户API请求限制
$_ENV['rate_limit_user_api'] = 60; // 每分钟每个用户的API请求限制
$_ENV['rate_limit_admin_api_ip'] = 60; // 每分钟每个管理员的API请求限制
$_ENV['rate_limit_admin_api'] = 60; // 每分钟每个管理员的API请求限制
$_ENV['rate_limit_node_api_ip'] = 60; // 每分钟每个IP的节点API请求限制
$_ENV['rate_limit_node_api'] = 60; // 每分钟每个节点的API请求限制
//邮件设置----------------------------------------------------------------------------------------------------------------
$_ENV['mail_filter'] = 0; // 0: 关闭; 1: 白名单模式; 2; 黑名单模式;
$_ENV['mail_filter_list'] = [];
//已注册用户设置-----------------------------------------------------------------------------------------------------------
//TODO: move these settings to DB
#高级
$_ENV['class_expire_reset_traffic'] = 0; // 等级到期时重置为的流量值单位GB小于0时不重置
$_ENV['class_expire_reset_day'] = 3; // 新增,套餐到期赠送流量时,同时附带套餐时间,不然不能用。。。。。。。。
$_ENV['enable_kill'] = true; // 是否允许用户注销账户
$_ENV['enable_change_email'] = true; // 是否允许用户更改賬戶郵箱
#用户流量余量不足邮件提醒
$_ENV['notify_limit_mode'] = false; // false为关闭per为按照百分比提醒mb为按照固定剩余流量提醒
$_ENV['notify_limit_value'] = 500; // 当上一项为per时此处填写百分比当上一项为mb时此处填写流量
//订阅设置----------------------------------------------------------------------------------------------------------------
$_ENV['Subscribe'] = true; // 本站是否提供订阅功能
$_ENV['subUrl'] = $_ENV['baseUrl']; // 订阅地址,如需和站点名称相同,请不要修改
$_ENV['geoUrl'] = $_ENV['baseUrl'];
$_ENV['sub_token_len'] = 16; // 订阅token长度
//审计自动封禁设置---------------------------------------------------------------------------------------------------------
//TODO: move these settings to DB
$_ENV['auto_detect_ban_allow_admin'] = true; // 管理员不受审计限制
$_ENV['auto_detect_ban_allow_users'] = []; // 审计封禁的例外用户 ID
$_ENV['auto_detect_ban_number'] = 30; // 每次执行封禁所需的触发次数
$_ENV['auto_detect_ban_time'] = 60; // 每次封禁的时长 (分钟)
//节点检测---------------------------------------------------------------------------------------------------------------
//TODO: move these settings to DB
#GFW检测
$_ENV['detect_gfw_port'] = 443; //所有节点服务器都打开的TCP端口
$_ENV['detect_gfw_url'] = 'http://example.com:8080/v1/tcping?ip={ip}&port={port}'; //检测节点是否被gfw墙了的API的URL
#离线检测
$_ENV['enable_detect_offline'] = true;
//高级设置---------------------------------------------------------------------------------------------------------------
$_ENV['enable_login_bind_ip'] = true; //是否将登陆线程和IP绑定
$_ENV['enable_login_bind_device'] = true; //是否将登陆线程和设备绑定
$_ENV['rememberMeDuration'] = 7; //登录时记住账号时长天数
$_ENV['timeZone'] = 'Asia/Taipei'; //需使用 PHP 兼容的时区格式
$_ENV['theme'] = 'tabler'; //默认主题
$_ENV['locale'] = 'zh-TW'; //默认语言
$_ENV['jump_delay'] = 1200; //跳转延时单位ms
$_ENV['keep_connect'] = false; // 流量耗尽用户限速至 1Mbps
//Generative AI---------------------------------------------------------------------------------------------------------
//Large language model powered ticket reply and more
//TODO: move these settings to DB
$_ENV['llm_backend'] = 'openai'; // openai/google-ai/huggingface/cf-workers-ai/anthropic
#OpenAI ChatGPT
$_ENV['openai_api_key'] = '';
$_ENV['openai_model'] = 'gpt-4-turbo-preview';
#Google AI API
$_ENV['google_ai_api_key'] = '';
$_ENV['google_ai_model_id'] = 'gemini-1.5-pro-latest';
#Vertex AI API
$_ENV['vertex_ai_access_token'] = '';
$_ENV['vertex_ai_location'] = 'us-central1';
$_ENV['vertex_ai_model_id'] = 'gemini-1.0-pro';
$_ENV['vertex_ai_project_id'] = '';
#Hugging Face Inference API
$_ENV['huggingface_api_key'] = '';
$_ENV['huggingface_endpoint_url'] = '';
#Cloudflare Workers AI
$_ENV['cf_workers_ai_account_id'] = '';
$_ENV['cf_workers_ai_api_token'] = '';
$_ENV['cf_workers_ai_model_id'] = '@cf/meta/llama-2-7b-chat-int8';
#Anthropic
$_ENV['anthropic_api_key'] = '';
$_ENV['anthropic_model_id'] = 'claude-3-opus-20240229';
//Other-----------------------------------------------------------------------------------------------------------------
// cdn.jsdelivr.net / fastly.jsdelivr.net / testingcf.jsdelivr.net
$_ENV['jsdelivr_url'] = 'fastly.jsdelivr.net';
// https://sentry.io for production debugging
$_ENV['sentry_dsn'] = '';
// Maxmind GeoIP2 database
$_ENV['maxmind_license_key'] = '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';
$_ENV['geoip_locale'] = 'zh-CN';
// ClientDownload 命令解决 API 访问频率高而被限制使用的 Github access token
$_ENV['github_access_token'] = '';
// use Cloudflare R2 for clients download
$_ENV['enable_r2_client_download'] = false;
$_ENV['r2_bucket_name'] = '';
$_ENV['r2_account_id'] = '';
$_ENV['r2_access_key_id'] = '';
$_ENV['r2_access_key_secret'] = '';
$_ENV['r2_client_download_timeout'] = 10;