.env (1200B)
1 ############ 2 # Frontend # 3 ############ 4 5 # Application window title 6 VITE_APP_DOC_TITLE='My Heats' 7 # Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m 8 VITE_SESSION_TTL=3600 9 # Full URI to backend http API 10 VITE_API_URI=http://myheats-api 11 # Backend API http port 12 VITE_API_PORT=8000 13 # Full URI to backend websocket API 14 VITE_WS_URI=ws://myheats-api 15 # Backend API websocket port 16 VITE_WS_PORT=8000 17 # Locale for frontend date formatting 18 VITE_LOCALE=en-US 19 20 ########### 21 # Backend # 22 ########### 23 24 API_REDIRECT_URI=http://myheats-frontend/authverify 25 # Backend API CORS allowed origins 26 API_CORS_ALLOW_ORIGIN=http://myheats-frontend 27 # JWT secret for magic links (`openssl rand -base64 48`) 28 API_JWT_SECRET= 29 # JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m 30 API_JWT_TTL=3600 31 32 # SMTP settings for sending magic links 33 SMTP_HOST= 34 # upgrade later with STARTTLS 35 SMTP_STARTTLS= 36 SMTP_PORT= 37 SMTP_USER= 38 SMTP_FROM= 39 SMTP_PASSWORD= 40 41 # PostgreSQL environment variables 42 # https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables 43 # PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc. 44 PGHOST=myheats-db 45 PGPORT=5432 46 PGDATABASE=postgres 47 PGUSERNAME=postgres 48 PGPASSWORD=example