MIA & GUS EDITOR: VPS DEPLOYMENT

Requirements: Python 3 and FFmpeg (including ffprobe).

Run from the application directory:
    python3 server.py 8767

The server listens on 127.0.0.1. Route your existing web server or reverse
proxy to this port and open the editor using your VPS domain.
The root URL redirects to gallery.html.
Proxy all application routes to this process, including /s/, /share, media,
and exports. Keep the persistent data directory outside any static web root.

Full URLs contain the complete editor setup. They do not require a saved
database record. Opening a full URL takes priority over browser preferences.

Short URLs use /s/<code> and restore a saved setup. Later edits create a
different saved setup. Creating the same setup again reuses its existing
short link. Links have no automatic expiration.

Keep the data directory persistent across restarts and deployments:
    .data/short-links.sqlite3

Set MIA_GUS_DATA_DIR to use another persistent data directory. Back up that
directory and copy it separately when moving existing short links to a new
server. The data directory is intentionally excluded from the downloadable
collection and cannot be downloaded through the editor's static routes.

The application needs write access to its data directory and output folder.
Generated media is stored in output/. Original reels and jingles must remain
at the paths included in the collection.

Links use the address where you open the editor. A localhost link works on
your own computer. Open the editor at your deployed address before copying
links intended for other people.
