Skip to content

Commit 1b06717

Browse files
committed
Fix login bug
1 parent 590b0b4 commit 1b06717

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

nginx/nginx.conf

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,18 @@ http {
4040
server storage-blob-api:9300;
4141
}
4242

43-
upstream collab {
44-
server collab:4000;
45-
}
43+
# upstream collab {
44+
# server collab:4000;
45+
# }
4646

4747
server {
4848
listen 80;
4949
location / {
5050
proxy_pass http://peerprep/;
51+
proxy_set_header Host $host;
52+
proxy_set_header X-Real-IP $remote_addr;
53+
proxy_set_header X-Forwarded-Proto $scheme;
54+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
5155
}
5256

5357
location /users/ {
@@ -67,8 +71,8 @@ http {
6771
proxy_pass http://storage_blob_api/;
6872
}
6973

70-
location /collab/ {
71-
proxy_pass http://collab/;
72-
}
74+
# location /collab/ {
75+
# proxy_pass http://collab/;
76+
# }
7377
}
7478
}

peerprep/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /frontend
44
# TODO: don't include the .env file in the COPY
55
# TODO: multistage build
66
COPY package*.json ./
7-
RUN npm install
7+
RUN npm install --force
88
COPY . .
99
EXPOSE 3000
1010
CMD ["npm", "run", "dev"]

peerprep/app/questions/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ async function QuestionsPage() {
1515
</QuestionFilterProvider>
1616
</UserInfoProvider>
1717
);
18-
};
18+
}
1919

2020
export default QuestionsPage;

0 commit comments

Comments
 (0)