diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6bbbd5d..ea78a03b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -146,7 +146,7 @@ jobs: registry: ghcr.io workdir: questions/recordservice docker-push-rankingservice: - name: Push record service Docker Image to GitHub Packages + name: Push ranking service Docker Image to GitHub Packages runs-on: ubuntu-latest permissions: contents: read diff --git a/gatewayservice/.env b/gatewayservice/.env index 03172f14..e69de29b 100644 --- a/gatewayservice/.env +++ b/gatewayservice/.env @@ -1,2 +0,0 @@ -PROD_URL_3000=http://51.142.17.139/:3000 -PROD_URL_8000=http://51.142.17.139/:8000 \ No newline at end of file diff --git a/gatewayservice/gateway-service.js b/gatewayservice/gateway-service.js index b960d5e8..f26499f1 100644 --- a/gatewayservice/gateway-service.js +++ b/gatewayservice/gateway-service.js @@ -21,17 +21,7 @@ const genQuestServiceUrl = process.env.GEN_SERVICE_URL || 'http://localhost:8003 const rankingServiceUrl = process.env.RANK_SERVICE_URL || 'http://localhost:8004'; const questiongeneratorserviceUrl = process.env.QTEST_SERVICE_URL || 'http://localhost:8007'; -const devUrl3000 = process.env.DEV_URL_3000 || 'http://localhost:3000'; -const devUrl8000 = process.env.DEV_URL_8000 || 'http://localhost:8000'; -const prodUrl3000 = process.env.PROD_URL_3000; -const prodUrl8000 = process.env.PROD_URL_8000; - -const corsOptions = { - origin: [ devUrl3000, devUrl8000, prodUrl3000, prodUrl8000 ], - optionsSuccessStatus: 200 -} - -app.use(cors(corsOptions)); +app.use(cors()); app.use(express.json()); //Prometheus configuration