Strapi

Design and build a customized Strapi implementation: content types, custom APIs and plugins, integrations, Strapi 5 upgrades, and self-hosted deployment with hardening and handover.

On this page

What a self-hosted Strapi implementation involves

A Strapi implementation is a content model, an API contract and a hosted Node.js application that your front ends read from. Strapi is an open-source, self-hosted headless CMS that generates content APIs from the content models you define. It stores content in a SQL database, creates REST endpoints for each content type, adds GraphQL through an official plugin and gives editors a React admin panel. The public site is a separate application.

The repository README lists auto-generated REST and GraphQL APIs, roles and permissions, a media library, internationalization, draft and publish, a plugin system and a customizable admin dashboard. A customized implementation covers the content model and API contract, business logic in controllers, services and middlewares, plugins, integrations, preview and publishing, migration from the previous CMS, and hosting the application with its database and media storage.

Settle licensing and plan questions during discovery. The LICENSE file says that using any component under an ee/ directory means you are using the Enterprise Edition. Otherwise you are on the Community Edition under the MIT Expat license. Admin SSO needs the Enterprise plan or the SSO add-on with Growth. Audit logs and review workflows need Enterprise. Strapi's self-hosted pricing page lists Community as free, Growth at $45 per month with 3 included users and extra users at $15 per month, the SSO add-on at $150 per month plus $50 per user, and Enterprise through sales. The page shows no pricing date, so confirm figures before you budget. Live Preview and Releases are on Growth and Enterprise, so check them against the editor workflow too.

Version status shapes the plan. Strapi 5 has been supported since September 2024, and the security policy marks it LTS. The releases page shows v5.65.0 on December 2, 2026, with minor releases roughly weekly through late 2026. Schedule regular update reviews instead of treating upgrades as rare events.

Strapi system requirements and self-hosted deployment components

Node.js application

Serves the admin panel and API. Strapi supports only Active LTS and Maintenance LTS Node.js releases, currently v22, v24 and v26, and not odd-numbered Current releases such as v23 or v25. It needs npm v6 or above or pnpm. Build in CI with NODE_ENV=production and npm run build, start with npm run start, and run under PM2, which the deployment docs strongly recommend.

Hardware and health checks

Minimum hardware is 1 CPU core, 2GB RAM and 8GB disk. Recommended is 2 or more cores, 4GB or more RAM and 32GB or more disk. The /_health endpoint returns HTTP 204 when the server is ready, which suits uptime monitors and load balancers. The server defaults are host localhost and port 1337, and app.keys is mandatory.

Database

The installation requirements list PostgreSQL 14 (17 recommended), MySQL 8.0 (8.4), MariaDB 10.3 (11.4) and SQLite 3, which suits local development. MongoDB, other NoSQL databases and cloud-native databases such as Amazon Aurora and Google Cloud SQL are not supported. The pool defaults to min 2 and max 10. Set min to 0 under Docker.

Media storage

Files go to public/uploads/ on local disk by default. Strapi maintains official Local, Amazon S3 and Cloudinary providers. The default security middleware limits image and media loading to 'self', so external providers need contentSecurityPolicy changes. Use object storage or a persistent volume for containers and for more than one instance.

Containers and reverse proxy

Strapi builds no official container images. Its Docker guide is a community courtesy with a multi-stage Dockerfile.prod. Do not set NODE_ENV=production before npm ci, keep database ports off the host and push images to a private registry. Put a reverse proxy in front, such as Caddy, HAProxy, Nginx or Traefik. The docs include no Kubernetes manifests or Helm chart.

CDN and caching

Cache public read endpoints in a CDN or the front end's data layer, and purge or rebuild from webhooks on publish. The default CORS origin is '*', so list your front-end origins. The default JSON body limit is 1mb, which matters for clients that post large payloads.

Model content types, components and page-builder zones

The content model is code. The Content-type Builder writes schema files and works only in development, so schema changes reach production through Git and a deployment. Treat the API as a contract with every front end that reads it.

Building blockUse it forWatch for
Collection typesRepeating records such as articles, products, people and locations.API consumers depend on the names, so keep them stable and add fields before removing old ones.
Single typesOne-off content such as the homepage, global settings and navigation.Split a single type by owner before it collects unrelated fields.
ComponentsReusable groups of fields such as SEO metadata or call-to-action blocks.Keep nesting shallow so queries stay manageable.
Page-builder zonesPages that editors assemble from a set of allowed components.Front ends must render every allowed component, so keep the set small.
RelationsAuthors, categories and related content.Strapi 5 uses documentId, and related data returns only when requested with populate.
Internationalization and draft and publishLocalized content and a publishing step before content goes live.Agree locales and publishing rules with content owners before you build front-end queries.
Schema changesAdding, renaming or removing fields as the product grows.Commit schema files to Git and release front ends that tolerate new components first. Generate TypeScript types from the schema so breaking changes show up early.

Strapi custom plugin development: where custom code goes

Custom routes add endpoints beyond the generated REST API. Policies run before the handler as a read-only check that can block access. Keep authorization rules in policies, where reviewers find them in one place and tests can target them. Document who may call each custom route next to its policy. Name routes after the resource they expose, not the front end that first asked for them, so a second consumer can reuse them without a rename. During testing, call every custom route as each role and token type and record which requests the policy refuses.

Strapi SSO, preview and other integrations to plan

Front ends and preview

Front ends fetch content through REST or GraphQL. Preview opens the front end from the admin panel. Live Preview beside the edit view and Releases are on Growth and Enterprise, and Content history is 14 days on Growth. Decide early which of these editors need, because they affect plan choice.

Admin SSO

SSO needs Enterprise or the Growth SSO add-on and is disabled by default. Configure it under Global settings > Single Sign-On with auto-registration, a default role and local authentication lock-out. Never add Super Admin to the lock-out list, since that can lock everyone out. Without SSO, protect the admin panel at the network layer.

Editor roles, audit and workflow

RBAC is free, with Author, Editor and Super Admin roles and conditions that limit a permission to content the administrator created. Audit logs need Enterprise, keep 90 days by default and export to CSV. Review workflows also need Enterprise and start with four stages.

End users and tokens

Users and Permissions authenticates app users with JWTs and Public and Authenticated roles. jwtManagement accepts legacy-support, the default, or refresh, and its authentication endpoints are rate limited to 10 requests per 60000 ms by default. Server-side clients use read-only, full or custom API tokens lasting 7, 30, 90 days or unlimited.

Search and commerce

Webhooks or plugins feed search services. Product data usually stays in a commerce or PIM system, with Strapi holding editorial content that references it. Keep identifiers stable between the two systems so references survive schema changes and re-imports.

Strapi v4 to v5 migration, testing and launch

Strapi 4 reached end of life on April 30, 2026, and release 4.26.2 of June 9, 2026 is the final v4 release. The security policy shows v4 support ran from November 2021 to October 2025, with security updates until April 2026. A v4 project no longer receives fixes. Plan the Strapi v4 to v5 migration as a project with its own test cycle.

The upgrade tool (npx @strapi/upgrade major) updates dependencies and runs codemods, and database migrations run automatically when Strapi 5 first starts. There is no automated downgrade. Returning to v4 means restoring the pre-upgrade database backup together with the matching Git code, so take both before you run the tool.

Most of the work is in code and consumers. The Document Service API replaces the deprecated Entity Service API, REST responses drop the attributes wrapper, and GraphQL no longer exposes numeric IDs. A Strapi-Response-Format: v4 header lets front ends change gradually. Plugins need Strapi 5 versions. List every custom controller, service, lifecycle hook and plugin before you estimate the effort.

From WordPress, Contentful or a custom database, scripts read the export and write through the Document Service API. Map rich text to blocks or Markdown, relink images and add redirects in the front end. Then test custom endpoints as each role and token type, load-test reads through the CDN, make alt text required where needed, and train editors on staging before switching front ends one at a time.

Harden and run self-hosted Strapi: security, backup and restore

AreaPracticeCheck
SecretsSupply APP_KEYS, API_TOKEN_SALT, ADMIN_JWT_SECRET, JWT_SECRET, TRANSFER_TOKEN_SALT and ENCRYPTION_KEY from the deployment platform, not a committed .env file. Reuse them across deployments of one environment, because regenerating them invalidates sessions and tokens.No .env file is in Git, and each environment has its own values.
Roles and tokensGrant Public and Authenticated roles only what each front end needs. Choose the shortest API token lifetime that suits the client, and use read-only tokens where writes are not needed.Anonymous requests for drafts, users or writes are refused.
API limitsSet GraphQL depthLimit and maxLimit, which are unlimited by default, and cap REST page sizes. The GraphQL Sandbox landing page is disabled in production by default.Deeply nested or oversized queries are rejected.
Network and headersThe default security middleware is based on koa-helmet with hsts maxAge 31536000 and frameguard sameorigin. The default CORS origin is '*', and proxy.maxIpsCount defaults to 0, which the docs call insecure behind a proxy.CORS lists only your front-end origins, and the proxy IP count is set.
Admin sessionsAdmin sessions default to a 30 minute access token, a 2 hour idle session and a 30 day maximum, with HS256. The admin rate limit is 5 requests per 5 minutes in an in-memory store that can switch to Sequelize or Redis.The rate limit store is shared when several instances run.
Security updatesOnly Strapi 5 receives fixes. Reports go through GitHub Security Advisories with no fixed response time, and detailed disclosure follows a patch by 2 to 8 weeks depending on severity. Paid customers and partners get advance warning.Strapi and npm updates are reviewed on a schedule.
BackupsBack up the database, media and repository together. strapi transfer uses Push, Pull or Full Access transfer tokens, is disabled unless transfer.token.salt is set, and skips admin users and API tokens, so it does not replace a backup.A restore into a clean environment passes API smoke tests.
ScalingSeveral instances need a shared database, external media storage and scheduled tasks that run once. Point load balancers at /_health, which returns HTTP 204 when the server is ready.Restarting one instance does not interrupt traffic.

Who owns each part of a Strapi deployment

A headless setup splits ownership between the CMS, the front ends that read from it and the people who write the content. Name an owner for each area before launch.

Platform team

  • Runs Strapi, the database and media storage.
  • Applies Node.js, Strapi and dependency updates.
  • Runs restore tests on a schedule.

Developers

  • Own content types, endpoints and plugins.
  • Agree schema changes with front-end teams.
  • Keep generated types in step with the schema.

Content owners

  • Own locales and publishing rules.
  • Review editor accounts on a schedule.
  • Sign off preview and review workflows.

Security

  • Reviews roles, API tokens and admin accounts.
  • Tests custom endpoints for authorization gaps.
  • Checks GraphQL limits and CORS settings.

Strapi self-hosting, upgrade and licensing questions

Strapi Cloud vs self-hosted: which should we choose?

Strapi Cloud is a PaaS hosting platform with Starter, Pro and Business plans. It is not a SaaS version of the CMS, and its REST and GraphQL APIs behave the same as on self-hosted servers apart from URLs. Cloud builds and deploys on every push to the tracked branch. Self-hosting suits teams that need content in their own infrastructure, region or private network. It also means you run the database, storage, backups and upgrades.

Can we stay on Strapi 4 now that it is end of life?

Strapi 4 reached end of life on April 30, 2026, and 4.26.2 was the final release. The security policy lists it as End of Life, so it no longer receives security fixes. Plan the move to Strapi 5. Until then, limit network exposure of the admin panel and API. Take a database backup and matching Git state before you upgrade, because there is no automated downgrade.

What are the Strapi system requirements and supported Node version?

Strapi supports only Active LTS or Maintenance LTS Node.js releases, currently v22, v24 and v26. Databases are PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3. MongoDB is not supported. Minimum hardware is 1 CPU core, 2GB RAM and 8GB disk, and recommended is 2 or more cores, 4GB or more RAM and 32GB or more disk. It also needs npm v6 or above or pnpm.

How do we run Strapi in Docker in production?

Strapi builds no official container images, and its Docker guide is a community courtesy with a multi-stage Dockerfile.prod. Do not set NODE_ENV=production before npm ci. Put a reverse proxy in front, keep database ports off the host, persist uploads on a volume or external provider and push images to a private registry. Set the database pool minimum to 0 under Docker. The docs include no Kubernetes manifests or Helm chart and recommend npm over pnpm for self-hosted Kubernetes.

How do Strapi Enterprise and Community differ?

Community is the MIT-licensed code and is free. Using any component under an ee/ directory means you are using the Enterprise Edition. Audit logs and review workflows need Enterprise. SSO needs Enterprise or the Growth SSO add-on. Live Preview and Releases are on Growth and Enterprise. RBAC is free. Audit logs keep 90 days by default, and review workflows start with four stages. Match these features to your requirements during discovery.

How do we set up Strapi SSO?

Admin SSO needs the Enterprise plan or the SSO add-on with Growth. It is disabled by default and configured under Global settings > Single Sign-On, with auto-registration, a default role and local authentication lock-out. Do not add Super Admin to the lock-out list, since that can lock everyone out of the admin panel. Without SSO, protect the admin panel at the network layer. SSO covers editors and administrators. App users sign in through Users and Permissions.

How do we handle Strapi backup and restore?

Back up the database, media files and repository together. strapi transfer is disabled unless transfer.token.salt is set, uses Push, Pull or Full Access tokens valid for 7, 30, 90 days or unlimited, and skips admin users and API tokens, so it does not replace a backup. Changing API_TOKEN_SALT invalidates all existing API tokens. Prove the backup by restoring into a clean environment and running API smoke tests.

Scope of work and handover

DeployOpen designs the content model and API contract with your front-end teams. It builds custom endpoints, middlewares and plugins, and integrates identity, search and webhooks. It upgrades Strapi 4 projects or migrates content from the previous CMS, and it deploys Strapi in your infrastructure.

Security testing covers endpoint authorization, token scopes and GraphQL limits. DeployOpen documents access reviews, patching and backup tests as SOC 2 or ISO 27001 readiness evidence for your auditor.

Handover includes the repository with schemas and plugins, the API change process, the role and token inventory, environment setup, restore test results and editor guides.

Sources and further reading

More on Strapi

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.