-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcm.yaml
More file actions
35 lines (33 loc) · 1.14 KB
/
cm.yaml
File metadata and controls
35 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
apiVersion: v1
kind: ConfigMap
metadata:
name: strapi-config
namespace: strapi
data:
DATABASE_CLIENT: postgres
DATABASE_HOST: strapi-postgres-postgresql.strapi.svc.cluster.local
DATABASE_PORT: "5432"
DATABASE_NAME: strapi
DATABASE_USERNAME: strapi
HOST: "0.0.0.0"
PORT: "1337"
NODE_ENV: production
# Public URL for proper admin panel access (production server)
PUBLIC_URL: "https://your-domain.com"
# Admin panel URL configuration (production server)
STRAPI_ADMIN_BACKEND_URL: "https://your-domain.com"
ADMIN_PATH: "/admin"
# Strapi v5 specific configurations
STRAPI_PLUGIN_I18N_INIT_LOCALE_CODE: en
# Additional v5 configurations
STRAPI_TELEMETRY_DISABLED: "true"
STRAPI_LOG_LEVEL: "info"
# Vite/Development server configurations
DANGEROUSLY_DISABLE_HOST_CHECK: "true"
VITE_ALLOWED_HOSTS: "all"
VITE_HMR_HOST: "0.0.0.0"
VITE_HMR_PORT: "1337"
# Production CORS and host configuration
TRUSTED_HOSTS: "your-domain.com,private.your-domain.com,localhost,127.0.0.1"
CORS_ORIGIN: "https://your-domain.com,https://private.your-domain.com"
ADMIN_CORS_ORIGIN: "https://your-domain.com,https://private.your-domain.com"