Prerequisites
You’ll need:- Server: Linux (amd64/arm64) or macOS
- PostgreSQL: Version 12 or higher
- Reverse proxy: nginx or Caddy (for SSL/TLS)
- Root access: For systemd service installation
Installing oForum
Automated installation
The easiest way to install oForum:/usr/local/bin/oforum.
Manual installation
Or download pre-built binaries from the releases page:Building from source
If you prefer to build from source:PostgreSQL setup
Installing PostgreSQL
Creating the database
Securing PostgreSQL
Edit/etc/postgresql/*/main/pg_hba.conf (path may vary):
pg_hba.conf
Configuring oForum
Create environment file
Create a configuration directory:.env manually:
.env
Run migrations
Test the server
Start oForum manually to verify everything works:http://localhost:8080. If it works, stop the server (Ctrl+C) and set up systemd.
Systemd service
Create a systemd service to run oForum automatically:View logs
Reverse proxy setup
oForum serves plain HTTP. Use a reverse proxy for SSL/TLS termination:nginx
Caddy (easier SSL)
Caddy automatically provisions SSL certificates:SSL/TLS with Let’s Encrypt (nginx)
For nginx, use Certbot to get free SSL certificates:- Verify domain ownership
- Obtain SSL certificate
- Automatically configure nginx
- Set up auto-renewal
Updates and maintenance
Updating oForum
Database backups
Automate PostgreSQL backups:Monitoring
Check service health:Troubleshooting
Service won’t start
Check logs:Database connection errors
Test PostgreSQL connection:Permission denied errors
Fix ownership:Next steps
- Environment variables reference
- Security best practices
- Set up monitoring with your preferred tools (Prometheus, Grafana, etc.)