Files
livef12rocks/.env.example
T
Frank Schwenk 83d4468b69 feat: harden pipeline UX — preprocess, rembg alpha, remix/lightbox
Downscale to 2000px JPEG before rembg, random blend opacity, timeout
retries, per-variant remix prefill, lightbox, and longer SFTP idle.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-16 23:35:06 +02:00

34 lines
1.1 KiB
Bash

# Copy to `.env` and fill in real values. Never commit `.env`.
# --- SFTPGo credentials -----------------------------------------------
# Whoever runs the event camera/laptop uploads photos here.
SFTP_USER=livef12
SFTP_PASSWORD=changeme
# --- Host paths / ports --------------------------------------------------
# On the server this should be an absolute path, e.g.
# /home/frank/live.f12.rocks/data
DATA_HOST_DIR=./data
# Spec asked for 121212 which exceeds TCP max (65535). Use 12121.
SFTP_HOST_PORT=12121
# Minutes until SFTPGo closes an idle connection. Android/SSHJ clients
# often sit idle after upload; the default 15m shows up as a spurious EOF.
SFTPGO_IDLE_TIMEOUT=120
# --- Pipeline tuning (see make_random.py for background) -----------------
OUTPUT_COUNT=3
# Remix-form default / legacy; auto variants use the min/max range below.
BLEND_OPACITY=30%
BLEND_OPACITY_MIN=10
BLEND_OPACITY_MAX=50
FILTER_TIMEOUT=120
FILTER_TIMEOUT_LONG=300
MAX_FILTER_ATTEMPTS=8
MAX_EDGE_PX=2000
# birefnet-general OOMs on the ~8GB box; u2net + alpha ≈ `rembg i -a`
REMBG_MODEL=u2net
REMBG_ALPHA=1
NICE_LEVEL=18