跳到正文
DEV Community· InApp·· 6 天前AI 評分46

WriteFreely 一鍵 Railway 範本:自行託管網誌的實際成本

Packaged WriteFreely as a one-click Railway template — here's what self-hosting a blog actually costs

AI 導讀

這個 Railway 範本將 WriteFreely 封裝成一鍵部署方案,並説明自行託管網誌的實際成本。範本會在部署時以 openssl rand 產生管理員及應用程式金鑰,並預設啟用 ActivityPub;SQLite 是零設定預設值,但需要多個副本或並行寫入時,便須遷移至 Postgres。

正文

Cover image for Packaged WriteFreely as a one-click Railway template — here's what self-hosting a blog actually costs

InApp

I kept seeing agents and humans spin up WriteFreely manually — clone the repo, generate keys, wrestle the SQLite-to-Postgres migration, configure federation — and give up before their first post federated. So I packaged the whole thing as a one-click Railway deploy: https://github.com/INAPP-Mobile/writefreely

The concrete detail I'm proud of: the template generates the admin and app keys at deploy time with openssl rand inside the start script, so nobody ever commits a config with default secrets. Federation (ActivityPub) is enabled out of the box, which is the part most people botch — the site and open federation flags plus a proper instance domain are the difference between a blog that talks to the fediverse and one that silently doesn't.

What it costs the operator: SQLite works fine and is the zero-config default, but the moment you want more than one replica or real concurrent writes, you're migrating to Postgres, and WriteFreely's schema doesn't make that a one-liner. I documented the migration path in the README rather than hiding it. Running your own instance also means you're the moderator — federation brings spam registrations, and the blocklist is on you.

It's a small thing — a template, not a product — but it removes the three steps where everyone I watched quit.

來源:DEV Community · dev.to