Watch
1
0
Fork
You've already forked Seyyed_arc
0
forked from hesabix/arc
Seyyed_arc/telegram_proxy/config.example.php
Babak Alizadeh c3d23c29b5 security: contain Telegram bot token leak and harden EU proxy
Remove the production bot token from example configs, disable public
proxy test endpoints, restrict proxied Bot API methods, and mask
notification secrets in the admin API after the @Hesabix_bot compromise.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-23 09:24:42 +00:00

21 lines
912 B
PHP
Executable file

<?php
declare(strict_types=1);
/**
* فایل نمونهٔ تنظیمات پروکسی تلگرام.
*
* برای استفاده، این فایل را به نام config.php کپی کنید و مقادیر واقعی را جایگزین نمایید.
* هرگز توکن/کلید واقعی را در گیت commit نکنید.
*/
const TG_PROXY_CONFIG = [
'telegram_bot_token' => 'REPLACE_WITH_BOT_TOKEN',
'telegram_api_base' => 'https://api.telegram.org',
// الزامی: کلید مستقل با آنتروپی بالا. خالی گذاشتن = رد همه درخواست‌ها.
'proxy_api_key' => 'REPLACE_WITH_INDEPENDENT_PROXY_API_KEY',
'proxy_base_url' => 'https://eucdn.hesabix.ir',
'internal_webhook_url' => 'https://hsxn.hesabix.ir/api/v1/integrations/telegram/webhook/REPLACE_WITH_WEBHOOK_SECRET',
'enable_logging' => true,
'log_level' => 'INFO',
];