Align preview typography with FFmpeg output, add video/song title split, and ship OSS updates.
Separate YouTube video titles from on-video song/artist fields with Pro gating, serve curated fonts and watermark assets for 1:1 preview parity, and include billing/API/docs/deploy stack for self-hosted release. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
682020ff5a
commit
c8015937f9
@@ -0,0 +1,21 @@
|
||||
songs2vid.com, www.songs2vid.com {
|
||||
encode gzip
|
||||
reverse_proxy web:3000
|
||||
}
|
||||
|
||||
docs.songs2vid.com {
|
||||
encode gzip
|
||||
root * /srv/docs
|
||||
file_server
|
||||
try_files {path} /index.html
|
||||
}
|
||||
|
||||
# Basic-auth hash is generated on the server (caddy hash-password).
|
||||
# Do not commit live hashes/passwords here.
|
||||
studio.songs2vid.com {
|
||||
encode gzip
|
||||
basicauth {
|
||||
admin REPLACE_WITH_CADDY_HASH
|
||||
}
|
||||
reverse_proxy studio:5555
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: s2vid
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: s2vid
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U s2vid -d s2vid"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
web:
|
||||
image: atakanozban/songs2vid:latest
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "3000"
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
DATABASE_URL: postgresql://s2vid:${POSTGRES_PASSWORD}@postgres:5432/s2vid
|
||||
REDIS_URL: redis://redis:6379
|
||||
UPLOAD_DIR: /app/uploads
|
||||
NEXTAUTH_URL: ${NEXTAUTH_URL}
|
||||
volumes:
|
||||
- uploads_data:/app/uploads
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
command: >
|
||||
sh -c "npx prisma db push && node server.js"
|
||||
|
||||
worker:
|
||||
image: atakanozban/songs2vid:latest
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
DATABASE_URL: postgresql://s2vid:${POSTGRES_PASSWORD}@postgres:5432/s2vid
|
||||
REDIS_URL: redis://redis:6379
|
||||
UPLOAD_DIR: /app/uploads
|
||||
volumes:
|
||||
- uploads_data:/app/uploads
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
command: ["npx", "tsx", "worker/index.ts"]
|
||||
|
||||
studio:
|
||||
image: atakanozban/songs2vid:latest
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "5555"
|
||||
environment:
|
||||
DATABASE_URL: postgresql://s2vid:${POSTGRES_PASSWORD}@postgres:5432/s2vid
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
command: ["npx", "prisma", "studio", "--hostname", "0.0.0.0", "--port", "5555", "--browser", "none"]
|
||||
|
||||
caddy:
|
||||
image: caddy:2-alpine
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- ./docs-site:/srv/docs:ro
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
depends_on:
|
||||
- web
|
||||
- studio
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
uploads_data:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
Reference in New Issue
Block a user