forked from admin/zeropost-engine
fix(max): migrate to platform-api2.max.ru + Russian Trusted CA bundle
MAX API URL updated to platform-api2.max.ru (mandatory before 2026-07-19). Added Russian Trusted Root + Sub CA 2024 bundle as repo file — to be loaded via NODE_EXTRA_CA_CERTS=/app/russian_trusted_bundle.pem (set in Coolify env).
This commit is contained in:
@@ -213,7 +213,7 @@ async function publishToMax({ channel, text, photoUrl, article }) {
|
||||
throw new Error('MAX не настроен');
|
||||
}
|
||||
|
||||
const BASE = 'https://platform-api.max.ru';
|
||||
const BASE = 'https://platform-api2.max.ru';
|
||||
const token = channel.max_access_token;
|
||||
const chatId = channel.max_channel_id;
|
||||
const headers = { Authorization: token, 'Content-Type': 'application/json' };
|
||||
|
||||
Reference in New Issue
Block a user