---
title: "Self-host Ghost on Edge | Publishing without the tax"
description: "Run Ghost on a real VM with S3 media storage and a global CDN. Members, newsletters and paid subscriptions, with no per-member pricing and no revenue cut."
url: https://edge.network/solutions/ghost
---

For Ghost

# Modern publishing, self-hosted properly

Ghost on a real VM, images in an S3-compatible bucket and the public site cached in 988 locations. Members, newsletters and paid tiers all work, and nobody takes a cut of your revenue.

[Deploy a VM](/console/access/new?product=compute)[Have us migrate it](/solutions/expert-services)

The setup on this page costs $19.79 a month, with no egress line.

Why Ghost on Edge

## All the polish of Ghost(Pro), none of the per-member pricing

The same open-source Ghost, on a VM you own, with the media and the traffic handled by Edge.

-   ### A complete publishing platform
    
    Posts, pages, members, newsletters, paid subscriptions and a first-class editor. Open source, with no platform tax.
    
-   ### S3-compatible media storage
    
    The S3 storage adapter sends image uploads to an Edge Storage bucket. Your archive outlives any server.
    
-   ### Image transforms at the CDN
    
    Ghost resizes images itself. For high-volume sites, hand that job to the CDN for AVIF and WebP at the edge.
    
-   ### Bring your own email
    
    Connect Mailgun for newsletters and any SMTP provider for transactional mail. It works exactly as it does on Ghost(Pro).
    
-   ### Public site cached, members at origin
    
    The public site caches in 988 locations. Admin and member routes fall through to your VM.
    
-   ### Predictable bills
    
    A VM, a CDN deployment and a bucket. Nothing scales with your member count or your subscription revenue.
    

Reference architecture

## Node and MySQL on one VM, media in a bucket

A standard Ghost install, Node and MySQL on one VM, with media offloaded, the site cached, and email and payments handled by your own accounts.

-   [Compute](/compute)
    
    Runs Ghost (Node.js) and MySQL behind Nginx on one VM.
    
-   [Storage](/storage)
    
    Holds image uploads through the S3 storage adapter.
    
-   [CDN](/cdn)
    
    Caches the public site worldwide; admin and member routes hit origin.
    
-   [Image optimisation](/docs/cdn/image-optimization)
    
    Optional: replace Ghost's built-in resizing with edge transforms.
    
-   [DNS](/dns)
    
    Anycast DNS for the apex, www and your newsletter sending domain.
    
-   [Shield](/shield)
    
    Keeps bot floods out of member sign-up and newsletter forms.
    
-   [Assist](/assist)
    
    Answers reader questions from your posts and pages.
    

Deploy

## ghost install, then hand the media to a bucket

Ghost-CLI does the heavy lifting. Run it as a sudo user rather than root; Ghost-CLI insists.

1.  01
    
    ### Create the VM
    
    The nodejs library script installs Node 22 and Nginx. Add MySQL 8, Ghost's production database.
    
    shell
    
    ```
    $ edge compute create --name ghost --size s-2vcpu-4gb \
        --image ubuntu-24 --region london --script nodejs
    $ edge storage create acme-media
    
    $ edge compute ssh vm-2e7c19
    $ sudo apt install -y mysql-server
    ```
    
2.  02
    
    ### Install Ghost
    
    Ghost-CLI sets up the database, the Nginx site and a systemd service in one pass.
    
    shell
    
    ```
    $ sudo npm install -g ghost-cli@latest
    $ sudo mkdir -p /var/www/ghost
    $ sudo chown $USER:$USER /var/www/ghost && cd /var/www/ghost
    $ ghost install --url https://acme.news \
        --db mysql --process systemd
    ```
    
3.  03
    
    ### Add the S3 storage adapter
    
    Ghost loads storage adapters from content/adapters, so copy the package in after installing it.
    
    shell
    
    ```
    $ cd /var/www/ghost
    $ npm install ghost-storage-adapter-s3
    $ mkdir -p content/adapters/storage
    $ cp -r node_modules/ghost-storage-adapter-s3 \
        content/adapters/storage/s3
    ```
    
4.  04
    
    ### Point it at Edge Storage
    
    Set the endpoint and path-style addressing, and serve images from your media domain. Restart with ghost restart.
    
    config.production.json
    
    ```
    "storage": {
      "active": "s3",
      "s3": {
        "accessKeyId": "EDGE_KEY",
        "secretAccessKey": "EDGE_SECRET",
        "region": "us-east-1",
        "bucket": "acme-media",
        "endpoint": "https://storage.edge.network",
        "forcePathStyle": true,
        "assetHost": "https://media.acme.news"
      }
    }
    ```
    
5.  05
    
    ### Put the CDN in front
    
    Cache the public site and serve media straight from the bucket, with image transforms on.
    
    shell
    
    ```
    $ edge cdn create --name acme-news
    $ edge cdn domains add cdn-a1b2c3 \
        --domain acme.news --origin https://<vm-ip>
    $ edge cdn domains add cdn-a1b2c3 \
        --domain media.acme.news --jit-image \
        --origin-type storage --storage-bucket acme-media
    ```
    

Prefer to hand it off? [Give the job to your AI agent](/solutions/agentic-development) or [have our engineers do it](/solutions/expert-services).

What it costs

## A paid newsletter, without the percentage

The hosting side of a 10,000-member publication. Email goes through your own provider and is billed by them, which is why the comparison below includes Mailgun.

-   No per-member pricing, at any size
-   No platform share of subscription revenue
-   Email billed directly by your provider

[See compute pricing](/compute/pricing)

Estimated monthly bill on Edge

~10k members, weekly newsletter, ~50k visits/mo

USD

-   Compute$19.24Standard VM, 2 vCPU, 4 GiB, Ghost + MySQL
-   CDN$0.251.5M requests: 500k free, then 1M × $0.25 per million
-   Storage$0.3025 GB of images: 5 GB free, then 20 GB × $0.015
-   DNS$0.00Zone, www and sending-domain records
-   Egress$0.00

Total$19.79

Indicative monthly cost, newsletter with paid memberships

-   Substack10% of revenue
    
-   Ghost(Pro) Creator~$50–100
    
-   Edge (VM + CDN + Storage + Mailgun)~$25–45
    

Indicative figures. Substack's fee grows with revenue, so its bar is illustrative. Email volume moves the bill more than hosting at this scale.

FAQ

## Members, newsletters and leaving Substack

Something else? [Ask an engineer](/contact).

Self-hosted Ghost or Ghost(Pro)?

Same software, different host. Ghost(Pro) is the official managed service and funds Ghost's development. Self-hosting gives you root, custom integrations through the Admin API and a flat bill, in exchange for running a VM.

How do members and Stripe payments work?

Exactly as on Ghost(Pro). Connect your own Stripe account, set tiers and prices in Ghost Admin, and Ghost handles checkout, gating and renewals. Edge never touches the money.

Where do newsletters get sent from?

Ghost sends bulk newsletters through Mailgun and transactional mail through any SMTP provider. That traffic flows directly between Ghost and your email provider, not through Edge.

How do I deploy a theme?

Upload the zip in Ghost Admin, or keep themes in your repository and pull them into content/themes on deploy. Purge the CDN afterwards so readers see the change.

Can I move from Substack?

Yes. Ghost's migration tools import posts and subscribers from a Substack export. Our Expert Services team can run the move and the bootstrap for you.

Drop-in services

## Fewer fake sign-ups, fewer support emails

-   [
    
    Edge ShieldBot protection`POST /siteverify → score: 94`
    
    Keep bots out of member sign-up and newsletter forms with one server-side check. No puzzles for real readers.
    
    Free forever, with unlimited widgets. No puzzles for visitors.Explore
    
    ](/shield)
-   [
    
    Edge AssistAI answers`<script src="…/assist.js">`
    
    Answer reader questions from your posts, with fewer “where do I manage my subscription?” emails.
    
    Free tier: 250 answered questions a monthExplore
    
    ](/assist)

Related stacks

## Other publishing stacks

[All 38 stacks](/solutions/stacks)

-   [StatamicFlat-file Laravel CMS, zero database drama](/solutions/statamic)
-   [Craft CMSPremium PHP CMS for design-led teams](/solutions/craft)
-   [StrapiThe leading open-source headless CMS](/solutions/strapi)
-   [DirectusInstant API over any SQL database](/solutions/directus)

## Own your publication

Start free. Stand up a fresh Ghost site or move over from Substack, and we'll help with the bootstrap.

[Deploy a VM](/console/access/new?product=compute)[Have us migrate it](/solutions/expert-services)

Billed hourly from a prepaid balance. Egress is free on every product.
