Skip to content

Commit

Permalink
Merge pull request #439 from Arquisoft/dev
Browse files Browse the repository at this point in the history
Arreglos despliegue
  • Loading branch information
uo283055 authored May 1, 2024
2 parents ad33ece + ff17fc7 commit d26ae97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions gatewayservice/.env
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
PROD_URL_3000=http://51.142.17.139/:3000
PROD_URL_8000=http://51.142.17.139/:8000
12 changes: 1 addition & 11 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d26ae97

Please sign in to comment.