fix: configure Strapi public URL to prevent Gateway Timeout on publish

This commit is contained in:
echo 2026-02-27 16:18:24 +01:00
parent 4a22e8a18a
commit d7281024bf
3 changed files with 3 additions and 1 deletions

View File

@ -20,6 +20,6 @@ export default ({ env }) => ({
// Specify the build directory path for production
path: env('ADMIN_PATH', '/admin'),
build: {
backend: env('STRAPI_ADMIN_BACKEND_URL', '/'),
backend: env('PUBLIC_URL', 'https://cms.placebo.mk'),
},
});

View File

@ -1,6 +1,7 @@
export default ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
url: env('PUBLIC_URL', 'https://cms.placebo.mk'),
app: {
keys: env.array('APP_KEYS'),
},

View File

@ -130,6 +130,7 @@ services:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 1337
PUBLIC_URL: https://cms.placebo.mk
DATABASE_CLIENT: postgres
DATABASE_HOST: postgres-cms
DATABASE_PORT: '5432'