Skip to content

Allow bind ports to be customized in .env#72

Merged
jloh merged 2 commits intoTryGhost:mainfrom
christopher-b:port-config
Mar 23, 2026
Merged

Allow bind ports to be customized in .env#72
jloh merged 2 commits intoTryGhost:mainfrom
christopher-b:port-config

Conversation

@christopher-b
Copy link
Contributor

This change allows the Caddy bind ports to be customized with .env variables. This allows more versatile deployments behind reverse proxies without needing changes that will cause conflict when upgrading.

When hosting Ghost containers behind a reverse proxy, or an a machine where ports 80/443 are already in use, we need to edit compose.yml with different ports. This change simplifies that by allowing thost changes to be made in .env. This also makes updates easier, as we don't need to worry about conflicts in compose.yml.

I'm happy to consider other approaches; putting this here as a starting point.

Allow the Caddy bind ports to be customized with .env variables. This
allows more versatile deployments behind reverse proxies without needing
changes that will cause conflict when upgrading.
cursor[bot]

This comment was marked as outdated.

@jloh
Copy link
Member

jloh commented Mar 23, 2026

Thanks for the contribution!

@jloh jloh merged commit 49842c4 into TryGhost:main Mar 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants