/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
examples/getstarted/config/server.js
49 строк
1 KB
Ben Irvin
fix(types): tighten Core.Config typings with backward-compatible deprecations (#26787)
25 июн 2026, 13:25
Не верифицирован
25 июн 2026, 13:25
f625874
Код
Авторство
О чём код?
'use strict'; const cronTasks = require('./src/cron-tasks'); module.exports = ({ env }) => ({ host: env('HOST', '0.0.0.0'), port: env.int('PORT', 1337), cron: { enabled: true, tasks: cronTasks, }, app: { keys: env.array('APP_KEYS', ['toBeModified1', 'toBeModified2']), }, webhooks: { // TODO: V5, set to false by default // Receive populated relations in webhook and db lifecycle payloads // This only populates relations in all content-manager endpoints populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', true), }, // ℹ️ http_proxy is the env var used by system to set proxy globally proxy: { global: env('http_proxy'), }, http: { serverOptions: { requestTimeout: 1000 * 60 * 10, // set request timeout to 600000ms (10 minutes) }, }, transfer: { remote: { // enabled: false, }, }, logger: { config: { level: 'silly', }, updates: { // enabled: false, }, startup: { // enabled: false, }, }, mcp: { enabled: true, }, });