import type { Core } from '@strapi/strapi'; const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Server => ({ host: env('HOST', '0.0.0.0'), port: env.int('PORT', 1337), /** * Public URL of the API. Required behind a reverse proxy / custom domain so * that generated links (media URLs, admin redirects) are absolute and https. * Leave unset in local development. */ url: env('PUBLIC_URL'), // Trust X-Forwarded-* headers when Strapi runs behind nginx / a load balancer. proxy: env.bool('IS_PROXIED', false), app: { keys: env.array('APP_KEYS')!, }, logger: { config: { level: env('LOG_LEVEL', 'info'), }, }, cron: { enabled: env.bool('CRON_ENABLED', false), }, webhooks: { populateRelations: env.bool('WEBHOOKS_POPULATE_RELATIONS', false), }, }); export default config;