Full Go backend + Vue 3 frontend, OpenAI-compatible API, multi-provider account pools, billing/admin, Docker one-command deploy with auto HTTPS. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
898 B
Bash
29 lines
898 B
Bash
# Copy to .env (next to docker-compose.yml), edit, then:
|
|
# docker compose up -d --build
|
|
|
|
# Domain nginx binds (server_name) and acme.sh issues the cert for. Must resolve
|
|
# to this host with ports 80 + 443 reachable for the Let's Encrypt http-01 check.
|
|
# Use "localhost" for local testing — then ACME is skipped and a self-signed cert
|
|
# is used (443 still works, browser will warn).
|
|
DOMAIN=vividai.run
|
|
|
|
# Email for the Let's Encrypt / ACME account (renewal notices).
|
|
ACME_EMAIL=admin@example.com
|
|
|
|
# Host ports nginx listens on (80 = ACME challenge + redirect, 443 = TLS).
|
|
HTTP_PORT=80
|
|
HTTPS_PORT=443
|
|
|
|
# Session cookie Secure flag — keep true when serving over HTTPS (the default).
|
|
COOKIE_SECURE=true
|
|
|
|
APP_TITLE=image2api
|
|
|
|
# --- Postgres ---
|
|
POSTGRES_PASSWORD=change-me-postgres
|
|
|
|
# --- S3 / object storage (RustFS) ---
|
|
S3_BUCKET=vivid-ai
|
|
S3_ACCESS_KEY=vividai
|
|
S3_SECRET_KEY=change-me-s3-secret
|