Skip to content

Commit

Permalink
Merge pull request #184 from Arquisoft/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
UO290054 authored Apr 28, 2024
2 parents f8a962a + fb9265c commit e7a8e48
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const app = express();
app.disable('x-powered-by');
const port = 8000;

const originEndpoint = process.env.REACT_APP_API_ORIGIN_ENDPOINT || 'http://localhost:3000';
//const originEndpoint = process.env.REACT_APP_API_ORIGIN_ENDPOINT || 'http://localhost:3000';
const authServiceUrl = process.env.AUTH_SERVICE_URL || 'http://localhost:8002';
const userServiceUrl = process.env.USER_SERVICE_URL || 'http://localhost:8001';
const creationServiceUrl = process.env.CREATION_SERVICE_URL || 'http://localhost:8005';
const retrieveServiceUrl = process.env.RETRIEVE_SERVICE_URL || 'http://localhost:8004';

const corsOptions = {
origin: originEndpoint,
origin: '*',
methods: ['GET', 'POST'],
allowedHeaders: ['Content-Type', 'Authorization']
};
Expand Down
3 changes: 1 addition & 2 deletions users/authservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ WORKDIR /usr/src/authservice
COPY package*.json ./

# Install app dependencies
RUN npm install --ignore-scripts

RUN npm install
# Copy the app source code to the working directory
COPY . .

Expand Down
2 changes: 1 addition & 1 deletion users/userservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /usr/src/userservice
COPY package*.json ./

# Install app dependencies
RUN npm install --ignore-scripts
RUN npm install

# Copy the app source code to the working directory
COPY . .
Expand Down

0 comments on commit e7a8e48

Please sign in to comment.