Lighten Strapi CMS: drop unused cloud plugin, disable telemetry/promo UI
Remove @strapi/plugin-cloud (deploy is self-hosted via Docker/Ansible, never Strapi Cloud), disable the admin NPS/Enterprise-promotion flags (single-admin panel, no upsell needed), disable Strapi's anonymous telemetry, and prune dev dependencies from the production Docker image layer.
This commit is contained in:
@@ -6,3 +6,4 @@ ADMIN_JWT_SECRET=tobemodified
|
|||||||
TRANSFER_TOKEN_SALT=tobemodified
|
TRANSFER_TOKEN_SALT=tobemodified
|
||||||
JWT_SECRET=tobemodified
|
JWT_SECRET=tobemodified
|
||||||
ENCRYPTION_KEY=tobemodified
|
ENCRYPTION_KEY=tobemodified
|
||||||
|
STRAPI_TELEMETRY_DISABLED=true
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ COPY package*.json ./
|
|||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
RUN npm prune --omit=dev
|
||||||
|
|
||||||
FROM node:22-alpine AS runtime
|
FROM node:22-alpine AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
+2
-2
@@ -16,8 +16,8 @@ const config = ({ env }: Core.Config.Shared.ConfigParams): Core.Config.Admin =>
|
|||||||
encryptionKey: env('ENCRYPTION_KEY')!,
|
encryptionKey: env('ENCRYPTION_KEY')!,
|
||||||
},
|
},
|
||||||
flags: {
|
flags: {
|
||||||
nps: env.bool('FLAG_NPS', true),
|
nps: env.bool('FLAG_NPS', false),
|
||||||
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
|
promoteEE: env.bool('FLAG_PROMOTE_EE', false),
|
||||||
docLinks: env.bool('FLAG_DOC_LINKS', true),
|
docLinks: env.bool('FLAG_DOC_LINKS', true),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Generated
-24
@@ -9,7 +9,6 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strapi/database": "5.52.1",
|
"@strapi/database": "5.52.1",
|
||||||
"@strapi/plugin-cloud": "5.52.1",
|
|
||||||
"@strapi/plugin-users-permissions": "5.52.1",
|
"@strapi/plugin-users-permissions": "5.52.1",
|
||||||
"@strapi/strapi": "5.52.1",
|
"@strapi/strapi": "5.52.1",
|
||||||
"pg": "8.20.0",
|
"pg": "8.20.0",
|
||||||
@@ -7684,29 +7683,6 @@
|
|||||||
"npm": ">=6.0.0"
|
"npm": ">=6.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@strapi/plugin-cloud": {
|
|
||||||
"version": "5.52.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/@strapi/plugin-cloud/-/plugin-cloud-5.52.1.tgz",
|
|
||||||
"integrity": "sha512-l5AZ03hhU4cz3ow1Cqvf8d6cJLMrDEjeHa0Jz90ObFygKVo4v3rSBL3WT++X8BZnBQRT6rGj5RrSMwTxL5bggw==",
|
|
||||||
"license": "MIT",
|
|
||||||
"dependencies": {
|
|
||||||
"@strapi/design-system": "2.2.4",
|
|
||||||
"@strapi/icons": "2.2.4",
|
|
||||||
"react-intl": "6.6.2"
|
|
||||||
},
|
|
||||||
"engines": {
|
|
||||||
"node": ">=20.0.0 <=26.x.x",
|
|
||||||
"npm": ">=6.0.0"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"@strapi/admin": "^5.0.0",
|
|
||||||
"@strapi/strapi": "^5.0.0",
|
|
||||||
"react": "^17.0.0 || ^18.0.0",
|
|
||||||
"react-dom": "^17.0.0 || ^18.0.0",
|
|
||||||
"react-router-dom": "^6.30.3",
|
|
||||||
"styled-components": "^6.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@strapi/plugin-users-permissions": {
|
"node_modules/@strapi/plugin-users-permissions": {
|
||||||
"version": "5.52.1",
|
"version": "5.52.1",
|
||||||
"resolved": "https://registry.npmjs.org/@strapi/plugin-users-permissions/-/plugin-users-permissions-5.52.1.tgz",
|
"resolved": "https://registry.npmjs.org/@strapi/plugin-users-permissions/-/plugin-users-permissions-5.52.1.tgz",
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strapi/database": "5.52.1",
|
"@strapi/database": "5.52.1",
|
||||||
"@strapi/plugin-cloud": "5.52.1",
|
|
||||||
"@strapi/plugin-users-permissions": "5.52.1",
|
"@strapi/plugin-users-permissions": "5.52.1",
|
||||||
"@strapi/strapi": "5.52.1",
|
"@strapi/strapi": "5.52.1",
|
||||||
"pg": "8.20.0",
|
"pg": "8.20.0",
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ services:
|
|||||||
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
||||||
JWT_SECRET: ${JWT_SECRET}
|
JWT_SECRET: ${JWT_SECRET}
|
||||||
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
|
ENCRYPTION_KEY: ${ENCRYPTION_KEY}
|
||||||
|
STRAPI_TELEMETRY_DISABLED: "true"
|
||||||
volumes:
|
volumes:
|
||||||
- cms-uploads:/app/public/uploads
|
- cms-uploads:/app/public/uploads
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user