You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `CUSTOM_SUBDOMAIN` environment variable provides a way to override the default subdomain behavior in your application. When configured, it allows you to specify a custom subdomain that will be used instead of the application's default subdomain logic.
246
+
247
+
### Configuration
248
+
249
+
Add the following to your application's `.env` file:
# this url value is just an example, and is likely wrong for your environment!
17
-
url: "${HTTP_SCHEME}://ghost.${BASE_DOMAIN}"# Update to use HTTPS
17
+
url: "${HTTP_SCHEME}://${CUSTOM_SUBDOMAIN:-ghost}.${BASE_DOMAIN}"# Update to use HTTPS
18
18
# contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired)
19
19
NODE_ENV: production
20
20
privacy__useUpdateCheck: false
21
21
# This tells Ghost to trust the X-Forwarded-Proto header from Traefik
0 commit comments