---
title: "Deploy Cryptgeon"
description: "Self-destructing encrypted notes and files, with Redis on a volume"
category: "Other"
url: https://railway.com/deploy/cryptgeon-1
---

# Deploy Cryptgeon

Self-destructing encrypted notes and files, with Redis on a volume

**[Deploy Cryptgeon on Railway](https://railway.com/template/cryptgeon-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/cryptgeon-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --appendonly yes --maxmemory 200mb --maxmemory-policy allkeys-lru --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Cryptgeon https://raw.githubusercontent.com/cupcakearmy/cryptgeon/v2.9.3/design/favicon.png

- **Source:** https://github.com/aalfath/cryptgeon-railway-template
- **Health check:** /api/live
- **Public domain:** Yes

## Documentation

# Deploy and Host Cryptgeon on Railway

Cryptgeon is an open-source service for sharing secret notes and files that destroy themselves after a set number of views or minutes, like PrivNote. Everything is encrypted in the browser with AES-GCM, and the key stays in the link's `#fragment`, so the server only ever stores ciphertext.

## About Hosting Cryptgeon

This template runs Cryptgeon 2.9.3 from the official image, pinned by version and digest and built from a small public wrapper repo, next to Railway's own Redis. Cryptgeon gets a public Railway domain, listens on `PORT`, and has a health check at `/api/live` that also checks Redis. Redis holds the encrypted notes on a volume with append-only persistence and a 200 MB cap, so unread notes survive redeploys and restarts. The Redis password is generated and only used over Railway's private network. There is nothing to fill in: deploy, open the domain and create your first note.

## Common Use Cases

* Sending passwords, API keys or recovery codes that disappear after they are read
* Sharing a confidential file (up to 10 MiB by default) with a one-time link
* Giving a team a private, self-hosted alternative to PrivNote or One-Time Secret

## Dependencies for Cryptgeon Hosting

* Cryptgeon web app and API (service `Cryptgeon`, public)
* Redis (service `Redis`, private, on a volume)

### Deployment Dependencies

* [Cryptgeon on GitHub](https://github.com/cupcakearmy/cryptgeon) (MIT)
* [Template wrapper repo](https://github.com/aalfath/cryptgeon-railway-template)
* [Railway Redis](https://docs.railway.com/guides/redis)

### Implementation Details

After deploy, open `https://YOUR-DOMAIN`, write a note or pick a file, choose the number of views or the expiry time, and share the link. Anyone who has the link can read the note, so send it only to the person it is meant for.

Optional settings go on the `Cryptgeon` service: `SIZE_LIMIT` (default `10 MiB`, max `512 MiB`), `MAX_VIEWS` (`100`), `MAX_EXPIRATION` in minutes (`10080`, 7 days), `ALLOW_FILES`, `ALLOW_ADVANCED`, `ID_LENGTH` and the `THEME_*` and `IMPRINT_*` options from the upstream README. Keep `SIZE_LIMIT` well below the service's memory.

Both services fit Railway's Free plan (a few MB of RAM each at idle). The app is built from the wrapper repo, so when a new Cryptgeon version is pushed there, Railway offers you an update; read the repo's `CHANGELOG.md` before you apply it. Upstream keeps Redis in RAM only; to do the same, remove `--appendonly yes` and set `--save ""` in the Redis start command.

## Why Deploy Cryptgeon on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Cryptgeon on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Wiki-Go](https://railway.com/deploy/wiki-go) — Flat-file Markdown wiki in Go: no database, generated admin login

Open this page in a browser: https://railway.com/deploy/cryptgeon-1
