############
# Frontend #
############

# Full URI to backend http API
export VITE_API_URI=http://127.0.0.1
# Backend API http port
export VITE_API_PORT=8000
# Application window title
export VITE_APP_DOC_TITLE='MyHeats'
# Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m
export VITE_SESSION_TTL=3600 #1h
# Full URI to backend websocket API
export VITE_WS_URI=ws://127.0.0.1
# Backend API websocket port
export VITE_WS_PORT=8000
# Locale for frontend date formatting
export VITE_LOCALE=en-US

###########
# Backend #
###########

# API server protocol and bind address
export API_URI=http://127.0.0.1
# Bind port for API server
export API_PORT=8000
# Redirect url for magic links
export API_REDIRECT_URI=http://127.0.0.1:5173/authverify
# Backend API CORS allowed origins
export API_CORS_ALLOW_ORIGIN=http://localhost:5173
# JWT secret for magic links (`openssl rand -base64 48`)
export API_JWT_SECRET=
# JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m
export API_JWT_TTL=3600

# SMTP settings for sending magic links
export SMTP_HOST=
# upgrade later with STARTTLS
export SMTP_STARTTLS=
export SMTP_PORT=
export SMTP_USER=
export SMTP_FROM=
export SMTP_PASSWORD=

# PostgreSQL environment variables for psql client
# https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables
# PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc.
export PGHOST=127.0.0.1
export PGPORT=5432
export PGDATABASE=postgres
export PGUSERNAME=postgres
export PGPASSWORD=example
