From 201e58c4ffd62a6b5d7d100c48a2597687cc9420 Mon Sep 17 00:00:00 2001 From: Louis Date: Sun, 22 Dec 2024 17:59:09 +0100 Subject: [PATCH] test --- backend/Dockerfile | 4 ++-- backend/src/index.ts | 6 +++--- backend/src/services/fivem.service.ts | 2 +- docker-compose.yml | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index bbe588a..a38eb15 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -17,7 +17,7 @@ COPY . . RUN npm run build # Expose port -EXPOSE 3000 +EXPOSE 4000 # Command to run the application -CMD ["node", "dist/index.js"] \ No newline at end of file +CMD ["node", "dist/index.js"] diff --git a/backend/src/index.ts b/backend/src/index.ts index 18a0b45..7f1677e 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -73,9 +73,9 @@ export default class Server { console.log("frontend", process.env.FRONTEND_URL); - app.use(cors(corsOptions)); - app.use(express.json()); - app.use(express.urlencoded({ extended: true })); + //app.use(cors(corsOptions)); + //app.use(express.json()); + //app.use(express.urlencoded({ extended: true })); this.startCronJob(); } diff --git a/backend/src/services/fivem.service.ts b/backend/src/services/fivem.service.ts index 5f4bc32..a121371 100644 --- a/backend/src/services/fivem.service.ts +++ b/backend/src/services/fivem.service.ts @@ -109,7 +109,7 @@ export async function getServers() { } if (server.id === "g8lqro") { - console.log(server); + //console.log(server); } // parse server to Server model diff --git a/docker-compose.yml b/docker-compose.yml index c059a14..26b4745 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,12 +20,13 @@ services: dockerfile: Dockerfile container_name: backend environment: + - FRONTEND_URL=https://tracker.louis.systems - MYSQL_HOST=mariadb - MYSQL_USER=fivem_tracker - MYSQL_PASSWORD=fivem_tracker - MYSQL_DATABASE=fivem_tracker ports: - - "7777:4000" + - "4000:4000" depends_on: - mariadb networks: @@ -42,7 +43,7 @@ services: - "6666:80" networks: - app_network - + networks: app_network: