Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Hotfix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
andrrsin committed May 7, 2023
1 parent 942282a commit e60f418
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ services:
webapp:
image: ghcr.io/arquisoft/lomap_en2b/webapp:latest
ports:
- "3000:3000"
- "443:443"
depends_on:
- restapi
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
restapi:
build: ./restapi
ports:
- "8800:8800"
- "443:443"
webapp:
build: ./webapp
ports:
Expand Down
2 changes: 1 addition & 1 deletion restapi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mongoose.connect("mongodb+srv://asw2b:[email protected]/?retryWrit
);


app.use(cors({origin:"https://172.162.240.176:3000"}))
app.use(cors({origin:"https://172.162.240.176"}))


app.use(cookieParser());
Expand Down
12 changes: 7 additions & 5 deletions restapi/tests/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ beforeAll(async () => {
mongoose.connect(connectionString);
});

afterAll(async () => {
server.close() //close the server
mongoose.connection.close();
})


describe('user ', () => {

Expand Down Expand Up @@ -155,4 +152,9 @@ describe('user ', () => {
const response:Response = await request(app).get("/solid/pepe/friends");
expect(response.statusCode).toBe(500);
});
});
});

afterAll(async () => {
server.close() //close the server
mongoose.connection.close();
})
2 changes: 1 addition & 1 deletion webapp/src/axios.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from "axios";

export const makeRequest = axios.create({
baseURL: "https://172.162.240.176:8800"
baseURL: "http://172.162.240.176:8800"
});
2 changes: 1 addition & 1 deletion webapp/src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Login = () => {
InputProps={{
endAdornment: (
<LoginButton oidcIssuer={idp}
redirectUrl="https://172.162.240.176:3000/main/"
redirectUrl="https://172.162.240.176/main/"
onError={console.error}>
<Button variant="contained">
Login
Expand Down

0 comments on commit e60f418

Please sign in to comment.