logo
icon

Sub2API

Deploy Sub2API with PostgreSQL and Redis on Zeabur.

PlatformZeabur
Deployed5
Publisherauthorzhuhaow
Deployed5 times
Publisherzhuhaow
Created2026-03-28
Services
service icon
service icon
service icon
Tags
AIAPITool

Sub2API

This template deploys a complete Sub2API stack on Zeabur:

  • Sub2API web UI and API gateway
  • PostgreSQL 18
  • Redis 8

What is included

  • Pinned Sub2API image: weishaw/sub2api:0.1.105
  • Persistent volumes for app data, PostgreSQL, and Redis
  • AUTO_SETUP=true so the app initializes itself on first boot
  • A public HTTP endpoint bound to your selected domain

Default credentials

  • Admin email: [email protected]
  • Admin password: generated from the service environment on first install

You can view the initial admin password from the Sub2API service instructions after deployment. This only applies on the first bootstrap of a fresh database. Later redeploys do not overwrite an existing admin password.

Production notes

  • Update ADMIN_EMAIL after deployment if you want to use your own login address.
  • JWT_SECRET is generated by the template.
  • TOTP_ENCRYPTION_KEY is left unset by default.
  • If you want 2FA to survive restarts and redeploys, set TOTP_ENCRYPTION_KEY manually after deployment to a 64-character hex string generated with openssl rand -hex 32.
  • Changing TOTP_ENCRYPTION_KEY later invalidates previously configured 2FA secrets.
  • PostgreSQL and Redis forwarding are disabled by default so they stay internal to the project.

Upstream project