Skip to content

Commit

Permalink
Arreglo hospot
Browse files Browse the repository at this point in the history
  • Loading branch information
uo277310 committed May 1, 2024
1 parent 631c325 commit b81f45b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions gatewayservice/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROD_URL=http://51.142.17.139/
4 changes: 3 additions & 1 deletion gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const swaggerUi = require('swagger-ui-express');
const fs = require("fs")
const YAML = require('yaml')

require('dotenv').config();

const app = express();
app.disable("x-powered-by");
const port = 8000;
Expand All @@ -20,7 +22,7 @@ const rankingServiceUrl = process.env.RANK_SERVICE_URL || 'http://localhost:8004
const questiongeneratorserviceUrl = process.env.QTEST_SERVICE_URL || 'http://localhost:8007';

const devUrl = process.env.DEV_URL || 'http://localhost';
const prodUrl = process.env.PROD_URL || 'http://51.142.17.139';
const prodUrl = process.env.PROD_URL;

const corsOptions = {
origin: [devUrl, prodUrl],
Expand Down
12 changes: 12 additions & 0 deletions gatewayservice/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gatewayservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"dependencies": {
"axios": "^1.6.5",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.18.2",
"express-openapi": "^12.1.3",
"express-prom-bundle": "^7.0.0",
Expand Down

0 comments on commit b81f45b

Please sign in to comment.