Files
CLOAK/cong.php
T
2026-06-16 04:58:56 +08:00

38 lines
1.3 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
define('LOGIN_PASSWORD', 'test123456');
define('DB_USERNAME', 'cloaka_test');
define('DB_NAME', 'cloaka_test');
define('DB_PASSWORD', 'hNeb3phx3QX12fGC');
// --- API 鉴权秘钥(全局通用,对接 tiktokba.com cloak 服务)---
define('CHECK_KEY', 'V6eISi8BsQNua3579ZzTbRwxmlXoJ4MF');
// --- Redis 通用配置(可选)---
define('REDIS_ENABLED', 'ON');
define('REDIS_HOST', '127.0.0.1');
define('REDIS_PORT', 6379);
define('REDIS_TIMEOUT', 1);
define('REDIS_PASSWORD', '');
// --- 访客日志异步写入(ON=队列落库,OFF=同步 INSERT---
define('VISITOR_LOG_ASYNC', 'ON');
// --- Cookie 域(可选)---
// 宝塔多域名共用代码时一般留空,按每次请求的 HTTP_HOST 自动推断(如 .shili.buzz)。
// 仅当所有落地域名需固定同一父域时再配置,例如:define('CLOAK_COOKIE_DOMAIN', '.shili.buzz');
// define('CLOAK_COOKIE_DOMAIN', '');
define('CLOAK_GEOIP_ENABLED', 'ON');
define('CLOAK_GEOIP_DB_PATH', __DIR__ . '/storage/runtime/c7f2a9e1/cc_idx.dat');
define('CLOAK_GEOIP_CACHE_TTL', 2592000);
// --- Cloudflare(必填;留空则域名仅本地登记,不走 API)---
define('SERVER_IP', '');
define('CLOUDFLARE_API_TOKEN', '');
define('CLOUDFLARE_ACCOUNT_ID', '');