From 740560fba629e44c18c67c4b9fda5c0e3a62261c Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:03:01 -0700 Subject: [PATCH] added env example with tokens --- apps/dispatch-server/.env.example | 4 +++- apps/dispatch/.env.example | 4 +++- apps/hub-server/.env.example | 16 ++++++++-------- apps/hub/.env.example | 11 +++++++---- packages/database/.env.example | 8 +------- 5 files changed, 22 insertions(+), 21 deletions(-) diff --git a/apps/dispatch-server/.env.example b/apps/dispatch-server/.env.example index 3ed5e2cd..8cafccf2 100644 --- a/apps/dispatch-server/.env.example +++ b/apps/dispatch-server/.env.example @@ -1,4 +1,6 @@ PORT=3002 REDIS_HOST=localhost REDIS_PORT=6379 -DISPATCH_APP_TOKEN= \ No newline at end of file +DISPATCH_APP_TOKEN=dispatch +LIVEKIT_API_KEY=APIAnsGdtdYp2Ho +LIVEKIT_API_SECRET=tdPjVsYUx8ddC7K9NvdmVAeLRF9GeADD6Fedm1x63fWC \ No newline at end of file diff --git a/apps/dispatch/.env.example b/apps/dispatch/.env.example index 3e284d52..ae8f55ea 100644 --- a/apps/dispatch/.env.example +++ b/apps/dispatch/.env.example @@ -6,4 +6,6 @@ NEXT_PUBLIC_HUB_URL=http://localhost:3000 NEXT_PUBLIC_PUBLIC_URL=http://localhost:3001 NEXT_PUBLIC_SERVICE_ID=1 DATABASE_URL=postgresql://persistant-data:persistant-data-pw@localhost:5432/var -NEXT_PUBLIC_LIVEKIT_URL=ws://localhost:7880 \ No newline at end of file +NEXT_PUBLIC_LIVEKIT_URL=ws://localhost:7880 +LIVEKIT_API_KEY=APIAnsGdtdYp2Ho +LIVEKIT_API_SECRET=tdPjVsYUx8ddC7K9NvdmVAeLRF9GeADD6Fedm1x63fWC \ No newline at end of file diff --git a/apps/hub-server/.env.example b/apps/hub-server/.env.example index 959cea51..7ecd02b6 100644 --- a/apps/hub-server/.env.example +++ b/apps/hub-server/.env.example @@ -1,8 +1,8 @@ -API_PORT= -MOODLE_TOKEN= -MOODLE_URL= -MAIL_SERVER= -MAIL_USER= -MAIL_PASSWORD= -MAIL_PORT= -HUB_URL=http://localhost:3000 \ No newline at end of file +API_PORT=3003 +MOODLE_TOKEN=ac346f0324647b68488d13fd52a9bbe8 +MOODLE_URL=http://localhost:8081 +MAIL_SERVER="asmtp.mail.hostpoint.ch" +MAIL_USER="noreply@virtualairrescue.com" +MAIL_PASSWORD="b7316PB8aDPCC%-&" +MAIL_PORT=465 +HUB_URL= \ No newline at end of file diff --git a/apps/hub/.env.example b/apps/hub/.env.example index b413bd3f..138dc93d 100644 --- a/apps/hub/.env.example +++ b/apps/hub/.env.example @@ -1,10 +1,13 @@ NEXTAUTH_URL=http://localhost:3000 -NEXTAUTH_SECRET= -NEXT_PUBLIC_MOODLE_URL= -DATABASE_URL= +NEXTAUTH_COOKIE_PREFIX=HUB +NEXTAUTH_SECRET=var +DATABASE_URL=postgresql://persistant-data:persistant-data-pw@localhost:5432/var DISCORD_OAUTH_CLIENT_ID= DISCORD_OAUTH_SECRET= DISCORD_BOT_TOKEN= NEXT_PUBLIC_DISCORD_URL= DISCORD_REDIRECT= -MOODLE_TOKEN= \ No newline at end of file +MOODLE_PW=var-api-user-P1 +MOODLE_TOKEN=ac346f0324647b68488d13fd52a9bbe8 +NEXT_PUBLIC_MOODLE_URL=http://localhost:8081 +NEXT_PUBLIC_HUB_SERVER_URL=http://localhost:3003 \ No newline at end of file diff --git a/packages/database/.env.example b/packages/database/.env.example index dbff9965..2fe4aba0 100644 --- a/packages/database/.env.example +++ b/packages/database/.env.example @@ -1,7 +1 @@ -# Environment variables declared in this file are automatically made available to Prisma. -# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema - -# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB. -# See the documentation for all the connection string options: https://pris.ly/d/connection-strings - -DATABASE_URL=postgresql://user:pw@localhost:5432/var \ No newline at end of file +DATABASE_URL=postgresql://persistant-data:persistant-data-pw@localhost:5432/var