Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: 2024-03-03 배포 #821

Merged
merged 26 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
fa9559c
ci: 타입오류 메시지 상대경로 명시적으로 해소 (#643)
scarf005 Sep 7, 2023
93fc7b4
feat: v2 book api (#746)
JeongJiHwan Sep 7, 2023
8b7c07f
style: prettier 적용 (#761)
scarf005 Sep 7, 2023
c88ca8d
[fix] backend dockerfile error (#764)
weg901127 Sep 8, 2023
1565441
fix: `positiveInt` -> `nonNegativeInt` (#766)
scarf005 Sep 11, 2023
6cbb823
refactor: v2 라우트 정리 적용 (#771)
scarf005 Sep 14, 2023
1ac5b23
feat: add mydata service
jimin52 Sep 21, 2023
7094331
feat: 유저 search 할 때 id 가 undefined 인 경우 핸들링
jimin52 Sep 21, 2023
1c8b49b
feat: add swagger && /me endpoint && apply authValidate
jimin52 Sep 21, 2023
71c1216
Merge branch 'develop' into 778-auth-관련-api-무조건-200-리턴-버그
jimin52 Sep 21, 2023
5754bef
fix: searchUsersById 타입을 이전과 같이 리턴하도록 변경
jimin52 Sep 21, 2023
7fbfa10
Merge branch '778-auth-관련-api-무조건-200-리턴-버그' of https://github.com/ji…
jimin52 Sep 21, 2023
1449028
fix: add librarian validate in search endpoint
jimin52 Sep 21, 2023
cda9990
feat: 로그인한 유저만 본인 정보를 찾을 수 있도록 middleware 에서 권한 체크
jimin52 Sep 26, 2023
7b7ad82
chore: console.log 제거
jimin52 Sep 26, 2023
c5bd7ae
Merge pull request #779 from jiphyeonjeon-42/778-auth-관련-api-무조건-200-…
jimin52 Oct 1, 2023
cf970dd
User API 경로 정리 (#777)
nyj001012 Oct 23, 2023
d7bca34
fix(cursus): Access-Control-Allow-Origin 설정 (#790)
nyj001012 Oct 25, 2023
53da6fd
chore: dependencies 업데이트 (#796)
nyj001012 Nov 6, 2023
6878ceb
fix: users/me 유저권한 all 로 변경
jimin52 Nov 27, 2023
f943af5
fix: 반납 3일 전 알림이 여러 번 전송됨 (#801)
nyj001012 Jan 13, 2024
8bee80b
fix: `dev/v2` 경로 복구 (#808)
scarf005 Jan 27, 2024
35a8192
security: 보안 취약점 해결 (#818)
nyj001012 Jan 27, 2024
59c4eec
fix(auth): /get/me시, id가 null이면 400 status code 반환 (#816)
nyj001012 Jan 27, 2024
7e6ccb3
fix: 이미지 빌드 에러 수정 (#820)
nyj001012 Feb 24, 2024
066d868
Merge branch 'main' into develop
nyj001012 Mar 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ENV PNPM_HOME="/root/.local/share/pnpm"
ENV PATH="${PATH}:${PNPM_HOME}"
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
RUN python3 -m venv .venv
RUN . .venv/bin/activate && pip3 install --no-cache --upgrade pip setuptools
RUN apk add --no-cache make
RUN apk add build-base
RUN npm install --global pnpm
Expand All @@ -29,4 +29,3 @@ RUN pnpm -r run build
RUN rm -rf /app/.pnpm-store

WORKDIR /app/backend

2 changes: 0 additions & 2 deletions backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { createExpressEndpoints } from '@ts-rest/express';

import router from '~/v1/routes';
import routerV2 from '~/v2/routes';
import lusca from "lusca";
import session from 'express-session';
import * as crypto from "crypto";
import { morganMiddleware } from './logger';
Expand All @@ -40,7 +39,6 @@ app.use(morganMiddleware);
app.use(cookieParser(
secret,
));
app.use(lusca.csrf());
app.use(passport.initialize());
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
Expand Down
2 changes: 1 addition & 1 deletion backend/src/v1/routes/users.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export const router = Router();
* example: []
*/
router
.get('/search', getRateLimiter, authValidate(roleSet.librarian), search)
.get('/search', getRateLimiter, authValidate(roleSet.service), search)
.post('/create', create)
.patch('/update/:id', cudRateLimiter, authValidate(roleSet.librarian), update)
.patch('/myupdate', cudRateLimiter, authValidate(roleSet.all), myupdate)
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ services:
container_name: nginx
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./build:/usr/share/nginx/html/
- /etc/letsencrypt:/etc/letsencrypt
ports:
- 80:80
- 443:443

database:
platform: linux/x86_64
Expand Down
33 changes: 8 additions & 25 deletions nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
server {
listen 80;
#listen [::]:443;
server_name server.42library.kr;
server_name 42library.kr;

#access_log /var/log/nginx/host.access.log main;

Expand All @@ -27,6 +26,13 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;

try_files $uri $uri/ /index.html;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
Expand All @@ -35,27 +41,4 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
2 changes: 2 additions & 0 deletions scripts/letsencrypt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
echo "Starting letsencrypt.sh"
Loading