An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Enable https for Ghost
Andras Bacsaia5f1b4b6756f
diff --git a/src/lib/database/services.ts b/src/lib/database/services.tsindex b4d3559466..0aec569b61 100644--- a/src/lib/database/services.ts+++ b/src/lib/database/services.ts@@ -165,7 +165,7 @@ export async function configureServiceType({ id, type }) {}});} else if (type === 'ghost') {- const defaultEmail = `${cuid()}@coolify.io`;+ const defaultEmail = `${cuid()}@example.com`;const defaultPassword = encrypt(generatePassword());const mariadbUser = cuid();const mariadbPassword = encrypt(generatePassword());diff --git a/src/routes/services/[id]/ghost/start.json.ts b/src/routes/services/[id]/ghost/start.json.tsindex 9e0b4ba11d..41c5e95d4c 100644--- a/src/routes/services/[id]/ghost/start.json.ts+++ b/src/routes/services/[id]/ghost/start.json.ts@@ -44,12 +44,15 @@ export const post: RequestHandler = async (event) => {const { workdir } = await createDirectories({ repository: type, buildId: id });const image = getServiceImage(type);const domain = getDomain(fqdn);+ const isHttps = fqdn.startsWith('https://');const config = {ghost: {image: `${image}:${version}`,volume: `${id}-ghost:/bitnami/ghost`,environmentVariables: {+ url: fqdn,GHOST_HOST: domain,+ GHOST_ENABLE_HTTPS: isHttps ? 'yes' : 'no',GHOST_EMAIL: defaultEmail,GHOST_PASSWORD: defaultPassword,GHOST_DATABASE_HOST: `${id}-mariadb`,