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