cargagep-v2/config.example.yml
Antoine Pelletier 51df9e75ad wip
2026-08-25 10:38:05 +02:00

44 lines
1.3 KiB
YAML

# Copy to config.yml (gitignored) and adapt. Every value can also be given as an
# environment variable, e.g. APP__SERVER__PORT=3000 — and `.env` is read the same
# way, which is where the secrets belong in development.
server:
address: 0.0.0.0
port: 3000
# Public origin the browser reaches the app on; the OIDC redirect uri is built
# from it. In development this is the vite dev server, not the backend.
base_url: http://localhost:5000
postgres:
host: localhost
port: 5432
user: postgres
password: postgres
name: cargagep
oidc:
client_id: cargagep
client_secret: change-me
issuer_url: https://hydra.agepoly.ch
# Minutes
session_lifetime: 60
# The bot that posts to the cargobikes group. Leave the whole section out and
# nothing is sent, which is what a machine without the bot wants. Both values
# are secrets: give them through `.env` (APP__TELEGRAM__BOT_TOKEN,
# APP__TELEGRAM__CHAT_ID) rather than committing them here.
# telegram:
# bot_token: "123456:ABC-DEF..."
# chat_id: "-1001234567890"
# # Only to point the sender somewhere else than the real bot api
# api_url: https://api.telegram.org
# Logged in without the provider, debug builds only (POST /api/login)
dev_users:
- firstname: Milan
name: Hyenne
email: milan.hyenne@epfl.ch
units:
- agepoly
admin: true
frontend_dir: frontend/dist