惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

Railway Blog

Where Railway is, and where it's going (Summer 2026) PaaS vs IaaS vs SaaS: What Each Means and Who Should Pick What in 2026 The Best Continuous Deployment Tools in 2026 The Best PaaS for Multi-Region Deployments in 2026 The Best Platforms for Monorepo Deployments in 2026 Compliance Isn't a Feature, It's a Posture What is BYOC (Bring Your Own Cloud)? A Developer's Guide for 2026 The Best Managed Kubernetes Hosting in 2026 The Best Container Registries in 2026 The Vanilla Cloud Tax: What Rolling Your Own on AWS Actually Costs What is a PaaS? A Developer's Guide for 2026 The Best Cloud Observability and Logging Tools in 2026 The Best PostgreSQL Hosting for Developers in 2026 The Best Multi-Region Hosting Platforms in 2026 The Best Platforms to Deploy AI Apps in 2026 (Not the Models, the Apps Around Them) Incident Report: May 19, 2026- GCP Account Suspension Counting to 3 with a new builder processing 50M+ monthly builds Railway iOS preview now available via TestFlight Kill your onboarding: selling to 10,000+ new users a day Your AI wants to nuke your database. Guardrails fix that. Better Rails for Agents: A New Remote MCP and Railway Agent in the CLI Moving Railway's Frontend Off Next.js One command deploys, there's a Stripe APP for that From registrar to deployed: buying a domain inside Railway A letter to open source builders who deserve more Networking is a black box, we used eBPF to open it Heroku Walked So Railway Can Run Security Features Your Security Team Will Love Railway Runs Open Source, Now We're Funding It Railway raises $100M Series B to unburden the builders
Deploy Offen on Railway
Faraz Patankar · 2023-02-01 · via Railway Blog

Offen is an open-source, lightweight, and free analytics solution. It is GDPR compliant with no ads or third parties involved and only uses first-party cookies. Offen is also opt-in only which means users must actively give consent to data collection and have full access to their data.

Deploy on Railway

https://railway.com/deploy?q=offen

To deploy your Offen instance on Railway, click the button above, enter the prompted environment variables, and then hit deploy. The required PostgreSQL database will be automagically provisioned for you.

Pre-configured environment variables:

  • OFFEN_DATABASE_CONNECTIONSTRING: This points to the DATABASE_URL of the PostgreSQL database that is deployed as part of the template
  • OFFEN_DATABASE_DIALECT: Defaults to postgres which is the database our Offen instance will be using
  • PORT: Defaults to 80 which is the port the Offen server runs on

Required environment variables:

  • OFFEN_SECRET: A Base64 encoded secret that is used for signing cookies and validating URL tokens

💡 Pro Tip: You can hit CMD+K to open the command palette and use our secret generator to generate a random secret.

Setting up Offen

After you configure the environment variables and hit deploy, you will be taken to your project. Upon successful deployment, your Offen instance should have a live URL. Visit the /setup endpoint to create your first account on Offen.

Offen account setup page
Offen account setup page

Once you’ve created your account, you will be redirected to the login page where you can log in as the operator of your Offen instance. Once you login, you should be able to view your dashboard.

New Offen analytics dashboard
New Offen analytics dashboard

You can now copy the embed code provided by Offen and add it to any website to start capturing analytics.

💡 To add additional accounts, you can visit the admin console at /console and create one. Your dashboard should then show two accounts and their respective embed codes.

Closing

Your Offen instance should now be live and fully functioning. You can now create accounts and start capturing analytics data for all your websites!


You might also be interested in another post we’ve written on self-hosted analytics alternatives which features templates for Ackee and Umami.

We hope you found this tutorial useful. If you have suggestions for more open-source self-hosted application guides, let us know on Discord!