mymusics

retro MySpace-style music player
Log | Files | Refs | README

.env.example (1403B)


      1 # API (Fastify) — explicit port wins over PORT_INDEX
      2 # PORT=38471
      3 
      4 # Slot 0..3 into predefined pools (see config/ports.ts). Same index pairs API + Vite dev by default.
      5 # PORT_INDEX=0
      6 
      7 # Vite dev server port — overrides paired slot when set
      8 # VITE_DEV_PORT=38472
      9 
     10 # Optional: different slot for Vite only (otherwise PORT_INDEX is used)
     11 # VITE_PORT_INDEX=0
     12 
     13 # Absolute path or path relative to cwd when starting `npm run start` / `dev:api`
     14 # Default in code: data/metadata.tsv inside this project (see data/metadata.tsv)
     15 METADATA_TSV=data/metadata.tsv
     16 
     17 # SQLite index built from metadata.tsv (npm run index-metadata)
     18 # TRACKS_DB=data/tracks.db
     19 
     20 # Comma-separated origins for API CORS (production default: site URL). Use * to allow all.
     21 # CORS_ORIGINS=https://mymusics.murad.gg
     22 
     23 # Public site URL (oEmbed, server)
     24 # PUBLIC_SITE_URL=https://mymusics.murad.gg
     25 
     26 # Restrict embed postMessage target (optional; client VITE_EMBED_PARENT_ORIGIN)
     27 # VITE_EMBED_PARENT_ORIGIN=https://example.com
     28 
     29 # verify-tracks cron sample size
     30 # VERIFY_SAMPLE_SIZE=50
     31 
     32 # Optional: Internet Archive item identifier (default: myspace_dragon_hoard_2010)
     33 # IA_ITEM_ID=myspace_dragon_hoard_2010
     34 
     35 # Serve Vite build from dist/ on the same port as the API (production / PM2).
     36 # SERVE_STATIC=true
     37 
     38 # Optional: public site URL for embed snippet text (default https://mymusics.murad.gg)
     39 # VITE_PUBLIC_SITE_URL=https://mymusics.murad.gg