Installation & Server Requirements
StreamVaultX is a complete adult video tube CMS shipped as a single self-hosted binary. It bundles the front-end, admin panel, importer, ad engine, TDS, AI SEO and analytics, and stores everything in an embedded SQLite database — no MySQL, no Redis, no PHP. The whole video catalog is kept in RAM, so public pages are extremely fast.
1. Server requirements
| Component | Minimum | Recommended |
|---|---|---|
| OS | Linux 64-bit (x86_64) | Ubuntu 22.04+ / Debian 11+ |
| CPU | 1 vCPU | 2+ vCPU |
| RAM | 1 GB | 2 GB+ (scales with catalog size) |
| Disk | 2 GB for the app | + storage for self-hosted videos / HLS / thumbnails |
| Database | None — SQLite is embedded in the binary | |
| ffmpeg | Required for thumbnails & "Save to server" (HLS). Install with apt install ffmpeg | |
| Domain | One domain/subdomain with a DNS A record pointing to your server | |
| SSL | Let's Encrypt (certbot) or Cloudflare | |
| Web server | nginx or Caddy as a reverse proxy (recommended), or run behind Cloudflare | |
| Network | Outbound HTTPS allowed (license activation, AI API, ad-network stats) | |
The binary is statically compiled (CGO-free), so it needs no extra system libraries. A small VPS (1 vCPU / 2 GB RAM) comfortably runs a large tube site because public pages are served from memory.
2. What you receive
After payment, download the streamvault-linux-amd64.zip from your account at My licenses. It contains the streamvault binary and sample deploy files. One license = one domain.
3. Install
a. Upload & extract
mkdir -p /opt/streamvault && cd /opt/streamvault # upload streamvault-linux-amd64.zip here, then: unzip streamvault-linux-amd64.zip chmod +x streamvault
b. Install ffmpeg
apt update && apt install -y ffmpeg unzip
c. Create the config
./streamvault init # generates config.json with random secrets nano config.json
Key fields in config.json:
| Field | Value |
|---|---|
listen | Local address, e.g. 127.0.0.1:8097 (nginx proxies to it) |
site_url | Your public URL, e.g. https://yourtube.com |
license_key | The license key from your order (activates this domain) |
data_dir | Where the SQLite DB & data live, e.g. ./data |
public_dir | Static files (thumbnails, verification files), e.g. ./public |
timezone | e.g. Asia/Jakarta |
ai.base_url / ai.api_key / ai.model | Any OpenAI-compatible API for AI SEO (OpenAI, OpenRouter, DeepSeek, Groq…). Leave blank to disable. |
d. Set the admin password
./streamvault passwd admin
e. Run as a service (systemd)
cat >/etc/systemd/system/streamvault.service <<'UNIT' [Unit] Description=StreamVaultX After=network.target [Service] WorkingDirectory=/opt/streamvault ExecStart=/opt/streamvault/streamvault serve -config /opt/streamvault/config.json Restart=always User=www-data [Install] WantedBy=multi-user.target UNIT chown -R www-data:www-data /opt/streamvault systemctl daemon-reload && systemctl enable --now streamvault journalctl -u streamvault -f # watch the log
f. nginx reverse proxy + SSL
server {
server_name yourtube.com;
client_max_body_size 2048m; # allow large uploads
location /uploads/ { alias /opt/streamvault/public/uploads/; }
location /media/ { alias /opt/streamvault/data/media/; }
location / {
proxy_pass http://127.0.0.1:8097;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Then issue SSL: certbot --nginx -d yourtube.com. Behind Cloudflare, the app reads the real visitor IP from CF-Connecting-IP.
4. License activation
StreamVaultX activates automatically on start using the license_key in config.json, binding the license to your domain. One license covers one domain. To move to a new domain, release the old one from My licenses, then start StreamVaultX on the new domain. Subscription licenses keep working offline for a grace period and re-check periodically.
5. First login & setup
- Open
https://yourtube.com/adminand log in asadmin. - Import videos — Admin → Import (single URL, or category/tag/search pages, bulk & scheduled). Use Save all videos to the server to self-host as HLS.
- Monetization — Admin → TDS to route each impression to the highest-paying ad network per country, plus the ad engine for VAST / popunder / native / banner.
- AI SEO — Admin → SEO (needs an AI API key in the config).
- Legal pages — Admin → Pages for 2257 / DMCA / Terms.
- Themes & languages — pick a theme and enable the languages you want.
6. Updating
cd /opt/streamvault systemctl stop streamvault unzip -o streamvault-linux-amd64.zip # new binary systemctl start streamvault # restarts in ~1 second
Your data, config and license are untouched by updates.
7. Backups
Back up config.json and the data/ folder (the SQLite DB and media) regularly. These hold your whole site.
Need help?
Contact support from the store footer. Include your license key and a copy of journalctl -u streamvault output if something fails to start.