Skip to content

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.

Generate SECRET_KEY_BASE with magic env

Blue Mouse15a2ba570439
diff --git a/templates/compose/swetrix.yaml b/templates/compose/swetrix.yaml
index 6b6721eef5..216d333b53 100644
--- a/templates/compose/swetrix.yaml
+++ b/templates/compose/swetrix.yaml
@@ -26,7 +26,7 @@ services:
image: swetrix/swetrix-api:v4.0.2
environment:
# Required
- - SECRET_KEY_BASE=${SECRET_KEY_BASE:?}
+ - SECRET_KEY_BASE=$SERVICE_BASE64_64_SECRETKEYBASE
# Optional
- DISABLE_REGISTRATION=${DISABLE_REGISTRATION:-false}