Support Case Study

VPS OBS Streaming:
From 403 to RTMP + AutoDJ

Database Mart engineers guided a customer through SSL on Nginx, RTMP ingestion for OBS live streaming, HLS playback for a Lovable.dev frontend, WebDAV PUT uploads, and a Node.js AutoDJ controller for 24/7 broadcast—all on one VPS with no server reset.

01 · Timeline

Incident Timeline

Jun 27
Initial Contact
Port 443 / SSL
Jun 28–29
SSL + RTMP Live
OBS connected
Jun 29–30
HLS + /stat Fix
Playback OK
Jun 30
WebDAV Setup
PUT enabled
Jul 1–2
AutoDJ Deploy
Node.js live
Jul 3
Ticket Closed
All systems go

Seven-day build: SSL → RTMP → HLS → WebDAV → AutoDJ 24/7—zero server reset.

02 · Resolution

How We Built It

June 27–28, 2026

Nginx Not Listening on Port 443 — SSL From Zero

A customer reached out with a VPS running Nginx and a goal: build a WebTV and live streaming platform using Lovable.dev as the frontend. The immediate blocker was a 403 Forbidden error—the frontend could not reach the VPS backend.

Engineer Alina identified the root cause: Nginx was not configured to listen on port 443, and no SSL certificate existed.

“The nginx web server is not listening on port 443 (HTTPS). This is why external connections to port 443 are failing—the service itself is not bound to that port, rather than being blocked by the firewall.”
Alina, Support Department · June 27, 2026

After the customer pointed DNS to the VPS IP, engineer Robert issued a free Let's Encrypt certificate, configured port 443, and set HTTP→HTTPS redirect on port 80. curl -I https://<SUBDOMAIN>.<DOMAIN>/ returned 200 OK.

June 29, 2026

Nginx RTMP for OBS Live Streaming on VPS

Engineer Hiker installed libnginx-mod-rtmp and rewrote /etc/nginx/nginx.conf for RTMP ingestion, HLS/DASH under /var/www/nginx-rtmp/, HTTPS with CORS, WebSocket upgrade, and the /stat endpoint.

OBS settings that worked: Server rtmp://<VPS_IP>/live, Stream Key <STREAM_KEY>. No trailing slash after /live—OBS is strict about URL formatting.
Hiker · June 29, 2026

First OBS connection succeeded; playback returned 404 until Hiker fixed nested HLS folder output. Correct path: https://<SUBDOMAIN>.<DOMAIN>/hls/<STREAM_KEY>.m3u8.

rtmp {
    server {
        listen 1935;
        application live {
            live on;
            hls on;
            hls_path /var/www/nginx-rtmp/hls;
            hls_fragment 2s;
            dash on;
            dash_path /var/www/nginx-rtmp/dash;
        }
    }
}

June 29–30, 2026

/stat Showed 0 Publishers — Multi-Worker Nginx RTMP Bug

The dashboard showed 0 publishers while OBS was streaming. OBS connected to worker A; /stat was answered by worker B with no stream state.

“Your OBS was successfully pushing the stream to 'Core A', but your Lovable app's /stat request was being answered by 'Core B', which honestly reported it had 0 active streams.”
Hiker · June 30, 2026

Fix: worker_processes 1; in nginx.conf, then reload Nginx. Hiker also created /media/ with autoindex_format json; for the upcoming AutoDJ library.

June 30, 2026

WebDAV PUT for Drag-and-Drop Uploads

The Lovable frontend needed HTTP PUT on /media. Engineer Queta enabled WebDAV with client_max_body_size 5G and verified with curl -X PUT.

client_max_body_size 5G;
dav_methods PUT DELETE MKCOL;
create_full_put_path on;
dav_access user:rw group:rw all:r;

July 1–3, 2026

Node.js AutoDJ — 24/7 Streaming Without OBS

Cloudflare Workers cannot run FFmpeg. Hiker and Bruce deployed /opt/autodj-control/ as autodj-control.service, proxied at location /autodj/ { proxy_pass http://127.0.0.1:8787/; }. Robert installed ffmpeg v6.1.1 when the worker stalled after an app update.

“I can confirm that the AutoDJ is now functioning successfully! Live-RTMP is also functioning successfully.”
Customer · July 3, 2026

Resolved AutoDJ live No reset

03 · At a Glance

Case at a Glance

7
Days start to finish
5
Engineers involved
5
Tech layers built
0
Server resets

04 · Guide

Geek Tips — Replicate This Stack on Your VPS

T1Nginx RTMP /stat Always Shows 0 Publishers?

  1. Set worker_processes 1; in /etc/nginx/nginx.conf
  2. nginx -t && systemctl reload nginx
  3. Reconnect OBS and refresh /stat

T2OBS RTMP Connection Failed With “Correct” Settings?

Use rtmp://your-server-ip/live without a trailing slash. Match the application name in rtmp {} to the URL path.

T3HLS Playback 404 While OBS Is Streaming?

Remove hls_nested on; if you need a flat /hls/<stream-key>.m3u8. Ensure hls_path is writable by www-data.

T4AutoDJ: Why Serverless Can't Run FFmpeg

Run a small Node service on the VPS, expose /autodj/* via systemd + Nginx reverse proxy, and protect with a shared secret—same pattern as this ticket’s “Option A” for Lovable.dev.

“From a blank VPS to a 24/7 live streaming platform—SSL, RTMP, HLS, WebDAV, and AutoDJ.”

We don't just set up servers. We help you ship what you're building.

Last Updated:   10/29/2026
Outline