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:
Alexey Pavlov
2026-06-24 15:43:22 +03:00
parent cd471d67a9
commit 5e075ac81d
3 changed files with 83 additions and 1 deletions
+1 -1
View File
@@ -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' };