From f2449969a79609f7fcf69b85d6c9dee493344243 Mon Sep 17 00:00:00 2001 From: Gerald Schmittinger Date: Thu, 6 Mar 2025 13:11:40 +0100 Subject: [PATCH] docs(backend): Updated .env.example ... to contain an example configuration for the database and IDP --- backend/.env.example | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/backend/.env.example b/backend/.env.example index c0c68b1c..50901dfd 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1 +1,20 @@ -PORT=3000 \ No newline at end of file +DWENGO_PORT=3000 +DWENGO_DB_HOST=domain-or-ip-of-database +DWENGO_DB_PORT=5432 + +# Change this to the actual credentials of the user Dwengo should use in the backend +DWENGO_DB_USERNAME=postgres +DWENGO_DB_PASSWORD=postgres + +# Set this to true when the database scheme needs to be updated. In that case, take a backup first. +DWENGO_DB_UPDATE=false + +# Data for the identity provider via which the students authenticate. +DWENGO_AUTH_STUDENT_URL=http://localhost:7080/realms/student +DWENGO_AUTH_STUDENT_CLIENT_ID=dwengo +DWENGO_AUTH_STUDENT_JWKS_ENDPOINT=http://localhost:7080/realms/student/protocol/openid-connect/certs + +# Data for the identity provider via which the teachers authenticate. +DWENGO_AUTH_TEACHER_URL=http://localhost:7080/realms/teacher +DWENGO_AUTH_TEACHER_CLIENT_ID=dwengo +DWENGO_AUTH_TEACHER_JWKS_ENDPOINT=http://localhost:7080/realms/teacher/protocol/openid-connect/certs