Self-hosting
This is a simple guide how to get started with OpenPanel on your own VPS.
Instructions
Prerequisites
- VPS of any kind (only tested on Ubuntu 24.04)
- We recommend using Hetzner (affiliate link). Use the link if you want to support us. 🫶
- 🙋♂️ This should work on any system if you have pre-installed docker, node and pnpm
Quickstart
Clone
Clone the repository to your VPS
Run the setup script
The setup script will do 3 things
- Install node (if you accept)
- Install docker (if you accept)
- Execute a node script that will ask some questions about your setup
Setup takes 30s to 2 minutes depending on your VPS
⚠️ If the ./setup
script fails to run, you can do it manually.
- Install docker
- Install node
- Install pnpm
- Run the
npx jiti ./quiz.ts
script inside the self-hosting folder
Start 🚀
Run the ./start
script located inside the self-hosting folder
Good to know
Always use correct api url
When self-hosting you'll need to provide your api url when initializing the SDK.
The path should be /api
and the domain should be your domain.
Some of OpenPanel's features require e-mail. We use Resend as our transactional e-mail provider. So to get this working you'll need to create an account on Resend and set the RESEND_API_KEY
environment variable.
Features that require e-mail:
- Password reset
- Invitations
- more will be added over time
Managed Redis
If you use a managed Redis service, you may need to set the notify-keyspace-events
manually.
Without this setting we wont be able to listen for expired keys which we use for caluclating currently active vistors.
You will see a warning in the logs if this needs to be set manually.