PocketBase

Open-source Go backend with built-in database, auth, files, and realtime API.

Access

  • Dashboard: http://<SERVER_IP>/_/
  • REST API: http://<SERVER_IP>/api/

Superuser Credentials

Your credentials are stored securely in: /root/.cloudzy-creds

Service Management

systemctl restart pocketbase  # Restart
systemctl status pocketbase   # Check status

Logs and Troubleshooting

PocketBase logs are saved to: /root/pb/std.log

To view logs in real time: tail -f /root/pb/std.log

Or via systemd: journalctl -u pocketbase -f

Important Files and Directories

  • Main installation directory: /root/pb/
  • Main executable: /root/pb/pocketbase
  • Log file (stdout + stderr): /root/pb/std.log
  • Database and file storage: /root/pb/pb_data/
  • Superuser credentials: /root/.cloudzy-creds
  • Systemd service definition: /lib/systemd/system/pocketbase.service
  • Nginx configuration: /etc/nginx/sites_available/pocketbase

Enabling SSL with a Domain

You already have certbot installed.

Edit /etc/nginx/sites-available/pocketbaseand  Replace _ in server_name _; with your actual domain name, for example:

server_name example.com;

Ensure your domain DNS record points to your server IP.

Run:

certbot --nginx --non-interactive --agree-tos --email <your-email> -d <domain>

Now access PocketBase securely:

https://<domain>/_/

Application Details