···11# Deploy on Railway
2233-The fastest way to get HappyView running is with Railway. This template deploys HappyView and Postgres with a single click:
33+The fastest way to get HappyView running is with Railway. Choose the database you want and these templates will deploy HappyView with a single click:
4455| SQLite | PostgreSQL |
66| --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
···1616 openssl rand -base64 48
1717 ```
18181919-2. **Assign a public domain.** In the Railway dashboard, add a public domain to the HappyView service. The service needs a publicly accessible URL for OAuth callbacks. Set `PUBLIC_URL` to this domain (e.g. `https://happyview-production.up.railway.app`).
1919+2. **Set your token encryption secret.** In the HappyView service variables, `TOKEN_ENCRYPTION_KEY` must be a Base64-encoded 32-byte key. This is used for encrypting plugin secrets and DPoP private keys at rest.
2020+2121+ ```sh
2222+ openssl rand -base64 32
2323+ ```
2424+2525+3. **Assign a public domain.** In the Railway dashboard, add a public domain to the HappyView service. The service needs a publicly accessible URL for OAuth callbacks. Set `PUBLIC_URL` to this domain (e.g. `https://happyview-production.up.railway.app`).
2026 :::note
2127 Your instance can use a custom domain or Railway's generated URL with no additional configuration.
2228 :::
23292424-3. Access your HappyView dashboard at the instance's public URL. The first user to log in is automatically bootstrapped as the super user.
3030+4. Access your HappyView dashboard at the instance's public URL. The first user to log in is automatically bootstrapped as the super user.
25312632## Next steps
2733