audio streaming app plyr.fm
37
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 49 lines 1.3 kB view raw
1app = 'relay-api' 2primary_region = 'iad' 3 4[build] 5 dockerfile = "Dockerfile" 6 ignore_file = ".dockerignore" 7 8[deploy] 9 release_command = "uv run --no-dev alembic upgrade head" 10 11[http_service] 12 internal_port = 8000 13 force_https = true 14 auto_stop_machines = 'stop' 15 auto_start_machines = true 16 min_machines_running = 1 17 processes = ['app'] 18 19 [http_service.concurrency] 20 type = 'requests' 21 hard_limit = 250 22 soft_limit = 200 23 24 [[http_service.checks]] 25 interval = "10s" 26 timeout = "5s" 27 grace_period = "30s" 28 method = "GET" 29 path = "/health" 30 31[[vm]] 32 memory = '1gb' 33 cpu_kind = 'shared' 34 cpus = 1 35 36[env] 37 PORT = '8000' 38 STORAGE_BACKEND = 'r2' 39 R2_BUCKET = 'audio-prod' 40 R2_ENDPOINT_URL = 'https://8feb33b5fb57ce2bc093bc6f4141f40a.r2.cloudflarestorage.com' 41 R2_PUBLIC_BUCKET_URL = 'https://pub-d4ed8a1e39d44dac85263d86ad5676fd.r2.dev' 42 ATPROTO_PDS_URL = 'https://pds.zzstoatzz.io' 43 44# secrets to set via: fly secrets set KEY=value -a relay-api 45# - DATABASE_URL (neon postgres connection string) 46# - AWS_ACCESS_KEY_ID (cloudflare R2) 47# - AWS_SECRET_ACCESS_KEY (cloudflare R2) 48# - OAUTH_ENCRYPTION_KEY (generate: python -c 'from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())') 49# - DOCKET_URL (self-hosted redis: redis://plyr-redis.internal:6379)