.env (1346B)
1 ############ 2 # Frontend # 3 ############ 4 5 # Full URI to backend http API 6 VITE_API_URI=http://127.0.0.1 7 # Backend API http port 8 VITE_API_PORT=8000 9 # Application window title 10 VITE_APP_DOC_TITLE='MyHeats' 11 # Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m 12 VITE_SESSION_TTL=3600 #1h 13 # Full URI to backend websocket API 14 VITE_WS_URI=ws://127.0.0.1 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 server protocol and bind address 25 API_URI=http://127.0.0.1 26 # Bind port for API server 27 API_PORT=8000 28 # Redirect url for magic links 29 API_REDIRECT_URI=http://localhost:5173/authverify 30 # Backend API CORS allowed origins 31 API_CORS_ALLOW_ORIGIN=http://localhost:5173 32 # JWT secret for magic links (`openssl rand -base64 48`) 33 API_JWT_SECRET= 34 # JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m 35 API_JWT_TTL=3600 36 37 # SMTP settings for sending magic links 38 SMTP_HOST= 39 # upgrade later with STARTTLS 40 SMTP_STARTTLS= 41 SMTP_PORT= 42 SMTP_USER= 43 SMTP_FROM= 44 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 PGHOST=127.0.0.1 50 PGPORT=5432 51 PGDATABASE=postgres 52 PGUSERNAME=postgres 53 PGPASSWORD=example