From c6760501556271f61357d3bebb9c74ce052fcddc Mon Sep 17 00:00:00 2001 From: Daniel Nguyen <94246004+CrazEpic@users.noreply.github.com> Date: Tue, 23 Apr 2024 22:44:31 -0500 Subject: [PATCH] Update .env.example --- .env.example | 27 +++++++++++++++++++-------- server/Controller/src/index.ts | 2 +- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index b67ffc1..a9082d8 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,19 @@ -PORT_EXPRESS_CONTROLLER_GAMEMANAGER=PORTNUMBER -PORT_WSS_CONTROLLER_CLIENT=PORTNUMBER -PORT_WSS_CONTROLLER_RASPBERRY=PORTNUMBER -PORT_GM_RASPBERRY=PORTNUMBER -PORT_SSE_GM=PORTNUMBER -PORT_CLIENT_GM=PORTNUMBER -CONTROLLER_PASSWORD=MUDAMUDAMUDA -CONTROLLER_ACCESS=donutvampire \ No newline at end of file +PRISMA_DB_URL="file: dev.db" + +PORT_EXPRESS_CONTROLLER_GAMEMANAGER=PORT +PORT_WSS_CONTROLLER_CLIENT=PORT +PORT_WSS_CONTROLLER_RASPBERRY=PORT +PORT_GM_RASPBERRY=PORT +PORT_SSE_GM=PORT +PORT_CLIENT_GM=PORT + +CONTROLLER_PASSWORD=password +CONTROLLER_ACCESS=donutvampire + +NUXT_CHANNEL_NAME=CHANNELNAME +NUXT_PARENT_NAME=PARENTNAME + +NUXT_AUTH0_CLIENTID=CLIENTID +NUXT_AUTH0_SECRET=CLIENTSECRET +NUXT_BASEURL=http://localhost:PORT/ +NUXT_ISSUER=https://dev-something.us.auth0.com/ \ No newline at end of file diff --git a/server/Controller/src/index.ts b/server/Controller/src/index.ts index 926b0c2..3b11758 100644 --- a/server/Controller/src/index.ts +++ b/server/Controller/src/index.ts @@ -10,7 +10,7 @@ dotenv.config({ path: "./.env" }) const PORT_SERVER: number = parseInt(`${process.env.PORT_EXPRESS_CONTROLLER_GAMEMANAGER}`) const PORT_WSS_CLIENT: number = parseInt(`${process.env.PORT_WSS_CONTROLLER_CLIENT}`) const PORT_WSS_RASPBERRY: number = parseInt(`${process.env.PORT_WSS_CONTROLLER_RASPBERRY}`) -let CONTROLLER_ACCESS: string = process.env.CONTROLLER_ACCESS ?? "" +let CONTROLLER_ACCESS: string = "" // Temporary queue until Auth0+database is set up // ws to close connection on POST /removeuser