Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
b6f209b
add: feat 이슈 템플릿 추가
Gyuhyeok99 Apr 2, 2024
575ae36
setting: 프로젝트 초기 세팅 #1
Gyuhyeok99 Apr 2, 2024
db1233d
setting: 스웨거 설정 추가 #1
Gyuhyeok99 Apr 2, 2024
de4d8b9
setting: user 패키지 구조 설정 #1
Gyuhyeok99 Apr 2, 2024
24f4751
setting: redis 설정 추가 #1
Gyuhyeok99 Apr 2, 2024
7392cb8
setting: api 응답 및 예외처리 설정 #1
Gyuhyeok99 Apr 2, 2024
a1e0607
setting: spring security 및 jwt 설정 #1
Gyuhyeok99 Apr 2, 2024
e525bb3
setting: 이슈템플릿 설정 #1
Gyuhyeok99 Apr 2, 2024
8bae25e
[Setting/#1] 프로젝트 기초 세팅 (#3)
Gyuhyeok99 Apr 2, 2024
84c1588
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 Apr 4, 2024
bf4cd8d
[feat#4] 엔티티 설계
Gyuhyeok99 Apr 4, 2024
75c4620
[feat#4] 컨트롤러 및 서비스 추가
Gyuhyeok99 Apr 4, 2024
a3f64d6
[feat#4] 컨트롤러 및 서비스 추가
Gyuhyeok99 Apr 4, 2024
bc8a45f
[feat#4] 카카오 로그인 및 온보딩 구현
Gyuhyeok99 Apr 4, 2024
cc316d7
[feat#4] 카카오 로그인 및 온보딩 구현
Gyuhyeok99 Apr 4, 2024
239e957
[feat#4] return Box 테이블 추가
Gyuhyeok99 Apr 4, 2024
4acabe8
Merge pull request #5 from Gyuhyeok99/feat/#4
Gyuhyeok99 Apr 4, 2024
c6555bd
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 Apr 4, 2024
5b632ba
[feat#6] 다회용기 이용 기능 추가
Gyuhyeok99 Apr 4, 2024
79cb402
[feat#6] 다회용기 리스트 조회 기능 추가
Gyuhyeok99 Apr 5, 2024
3a349ed
Merge pull request #7 from Gyuhyeok99/feat/#6
Gyuhyeok99 Apr 5, 2024
44e6712
Update README.md
Gyuhyeok99 Apr 5, 2024
2f683c3
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 Apr 5, 2024
b5803e6
[refactor#9] 요구사항 변경으로 인한 erd 수정
Gyuhyeok99 Apr 30, 2024
af81e87
Merge pull request #10 from Gyuhyeok99/refactor/#9
Gyuhyeok99 Apr 30, 2024
138c33f
Merge pull request #11 from Team-SWAcademy/refactor/#9
Gyuhyeok99 Apr 30, 2024
6f3a2ff
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 Apr 30, 2024
7b638fa
[ci#12] CI/CD 파이프라인 구축
Gyuhyeok99 Apr 30, 2024
2022184
Merge pull request #13 from Gyuhyeok99/ci/#12
Gyuhyeok99 Apr 30, 2024
b211253
Merge pull request #14 from Team-SWAcademy/ci/#12
Gyuhyeok99 Apr 30, 2024
ff607a8
[ci#12] CI/CD 파이프라인 구축
Gyuhyeok99 Apr 30, 2024
99a2493
Merge pull request #15 from Gyuhyeok99/ci/#12
Gyuhyeok99 Apr 30, 2024
e243204
Merge pull request #16 from Team-SWAcademy/ci/#12
Gyuhyeok99 Apr 30, 2024
8e634a8
[ci#12] CI/CD 파이프라인 구축
Gyuhyeok99 Apr 30, 2024
cbe7422
Merge pull request #17 from Gyuhyeok99/ci/#12
Gyuhyeok99 Apr 30, 2024
d9576e2
[ci#12] CI/CD 파이프라인 구축
Gyuhyeok99 Apr 30, 2024
133a1fd
[ci#12] CI/CD 파이프라인 구축
Gyuhyeok99 Apr 30, 2024
a522f5a
Merge pull request #18 from Gyuhyeok99/ci/#12
Gyuhyeok99 Apr 30, 2024
d8c78cc
Merge pull request #19 from Team-SWAcademy/ci/#12
Gyuhyeok99 Apr 30, 2024
a47271e
[ci#12] CI/CD 파이프라인 구축
Gyuhyeok99 Apr 30, 2024
36d3d3a
Merge pull request #20 from Gyuhyeok99/ci/#12
Gyuhyeok99 Apr 30, 2024
bf9b393
Merge pull request #21 from Team-SWAcademy/ci/#12
Gyuhyeok99 Apr 30, 2024
d63f966
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 Apr 30, 2024
c0f551c
[feat/#22] 이용중인 다회용기 단일 조회 기능 추가
Gyuhyeok99 Apr 30, 2024
a519cee
Merge pull request #23 from Gyuhyeok99/feat/#22
Gyuhyeok99 Apr 30, 2024
14b413f
Merge pull request #24 from Team-SWAcademy/feat/#22
Gyuhyeok99 Apr 30, 2024
ad3a184
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 Apr 30, 2024
45ad3da
[refactor/#25] LocalDateTime -> String으로 타입 변경
Gyuhyeok99 May 2, 2024
48b0b96
Merge pull request #26 from Gyuhyeok99/refactor/#25
Gyuhyeok99 May 2, 2024
d3718c2
Merge pull request #27 from Team-SWAcademy/refactor/#25
Gyuhyeok99 May 2, 2024
92c3852
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 2, 2024
7b20dec
[refactor/#28] 변수명 수정
Gyuhyeok99 May 2, 2024
92cb9a3
[refactor/#28] point table 추가
Gyuhyeok99 May 2, 2024
b3e6261
[refactor/#28] point table 추가
Gyuhyeok99 May 2, 2024
9bc707a
[refactor/#28] 회원가입 시 point 생성
Gyuhyeok99 May 2, 2024
6c966b5
[refactor/#28] 이용시간 yyyy.MM.dd HH:mm:ss 타입으로 반환하도록 수정
Gyuhyeok99 May 2, 2024
c31c8ef
Merge pull request #29 from Gyuhyeok99/refactor/#28
Gyuhyeok99 May 2, 2024
dddec02
Merge pull request #30 from Team-SWAcademy/refactor/#28
Gyuhyeok99 May 2, 2024
ba20f21
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 3, 2024
e60dda3
[feat/#31] 마이페이지 일별 이용 통계 기능 추가
Gyuhyeok99 May 6, 2024
913ab65
[feat/#31] 마이페이지 월별 이용 통계 기능 추가
Gyuhyeok99 May 6, 2024
7ee30f2
[feat/#31] 마이페이지 정보 수정 기능 추가
Gyuhyeok99 May 6, 2024
0d2545c
Merge pull request #32 from Gyuhyeok99/feat/#31
Gyuhyeok99 May 6, 2024
ef28af4
Merge pull request #33 from Team-SWAcademy/feat/#31
Gyuhyeok99 May 6, 2024
943487a
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 7, 2024
06b71cb
[feat/#8] 다회용기 반납 api 추가
Gyuhyeok99 May 8, 2024
ca8357a
Merge pull request #34 from Gyuhyeok99/feat/#8
Gyuhyeok99 May 8, 2024
367452f
Merge pull request #35 from Team-SWAcademy/feat/#8
Gyuhyeok99 May 8, 2024
5f601af
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 8, 2024
262c3fb
[feat/#36] 포인트 내역 조회 api
Gyuhyeok99 May 8, 2024
65660dd
Merge pull request #37 from Gyuhyeok99/feat/#36
Gyuhyeok99 May 8, 2024
974ebad
Merge pull request #38 from Team-SWAcademy/feat/#36
Gyuhyeok99 May 8, 2024
cc235f9
[feat/#36] 포인트 내역 조회 api
Gyuhyeok99 May 8, 2024
ccbe43d
Merge pull request #39 from Gyuhyeok99/feat/#36
Gyuhyeok99 May 8, 2024
196ebba
Merge pull request #40 from Team-SWAcademy/feat/#36
Gyuhyeok99 May 8, 2024
66285d5
Update README.md
Gyuhyeok99 May 9, 2024
2127423
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 9, 2024
88b762e
Update README.md
Gyuhyeok99 May 9, 2024
cb7acc9
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 9, 2024
881d352
[refactor/#41] point 및 매핑테이블 pk 삭제
Gyuhyeok99 May 13, 2024
5fe0dfd
Update README.md
Gyuhyeok99 May 14, 2024
f457c54
Update README.md
Gyuhyeok99 May 14, 2024
fc576e6
[refactor/#41] 통계 테이블 추가
Gyuhyeok99 May 14, 2024
4939977
Merge pull request #42 from Gyuhyeok99/refactor/#41
Gyuhyeok99 May 14, 2024
2be30d8
Merge pull request #43 from Team-SWAcademy/refactor/#41
Gyuhyeok99 May 14, 2024
d17e348
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 14, 2024
ac56c61
[refactor/#44] 응답 시 다회용기 type이 아닌 id로 주는 것으로 통일
Gyuhyeok99 May 14, 2024
f8b72f0
[refactor/#44] 장소 조회 api 추가
Gyuhyeok99 May 14, 2024
70fc8db
[refactor/#44] 장소 조회 api 추가
Gyuhyeok99 May 14, 2024
6e89cb1
[refactor/#44] 다회용기 이용 시 response로 장소 정보 추가
Gyuhyeok99 May 14, 2024
c203448
[refactor/#44] 다회용기 반납 시 response로 장소 정보 추가
Gyuhyeok99 May 14, 2024
68f6915
[refactor/#44] 포인트 내역 조회 시 M월 d일에서 yyyy년 추가
Gyuhyeok99 May 14, 2024
7c1cf75
Merge pull request #45 from Gyuhyeok99/refactor/#44
Gyuhyeok99 May 14, 2024
6abfb39
Merge pull request #46 from Team-SWAcademy/refactor/#44
Gyuhyeok99 May 14, 2024
9b9b865
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 14, 2024
b11d4ee
[refactor/#47] jwt token 하드코딩에서 환경변수값으로 변경
Gyuhyeok99 May 15, 2024
77d6bd5
Merge pull request #48 from Gyuhyeok99/refactor/#47
Gyuhyeok99 May 15, 2024
7ac11f4
Merge pull request #49 from Team-SWAcademy/refactor/#47
Gyuhyeok99 May 15, 2024
12f2464
[refactor/#51] 반납시 예외처리 or에서 and로 수정
Gyuhyeok99 May 16, 2024
c774418
Merge pull request #52 from Gyuhyeok99/refactor/#51
Gyuhyeok99 May 16, 2024
5b26048
Merge pull request #53 from Team-SWAcademy/refactor/#51
Gyuhyeok99 May 16, 2024
56ec7fb
Merge branch 'develop' of https://github.com/Gyuhyeok99/SWAcademy-Ser…
Gyuhyeok99 May 16, 2024
1eb0e5e
[refactor/#51] 마이페이지 정보 수정 시 로그 추가
Gyuhyeok99 May 27, 2024
481c504
[refactor/#51] 마이페이지 정보 수정 시 로그 추가 (#54)
Gyuhyeok99 May 27, 2024
68fbebb
[refactor/#51] 마이페이지 정보 수정 시 로그 추가
Gyuhyeok99 May 27, 2024
a16480b
Merge pull request #55 from Gyuhyeok99/refactor/#51
Gyuhyeok99 May 27, 2024
4c70e88
Merge pull request #56 from Team-SWAcademy/refactor/#51
Gyuhyeok99 May 27, 2024
49a103e
[refactor/#51] 마이페이지 정보 수정 시 로그 추가
Gyuhyeok99 May 27, 2024
e5bb877
Merge pull request #57 from Gyuhyeok99/refactor/#51
Gyuhyeok99 May 27, 2024
a71c646
Merge pull request #58 from Team-SWAcademy/refactor/#51
Gyuhyeok99 May 27, 2024
3366f11
[refactor/#51] 마이페이지 정보 수정 시 예외처리 추가
Gyuhyeok99 May 27, 2024
fd33405
Merge pull request #59 from Gyuhyeok99/refactor/#51
Gyuhyeok99 May 27, 2024
09cf751
[refactor/#51] 마이페이지 정보 수정 시 예외처리 추가
Gyuhyeok99 May 27, 2024
d380b81
Merge pull request #60 from Gyuhyeok99/refactor/#51
Gyuhyeok99 May 27, 2024
8fbdf0a
Merge branch 'develop' into refactor/#51
Gyuhyeok99 May 27, 2024
2d217c9
Merge pull request #61 from Team-SWAcademy/refactor/#51
Gyuhyeok99 May 27, 2024
d79fc43
Merge branch 'Team-SWAcademy:develop' into develop
Gyuhyeok99 May 28, 2024
3c43ad5
[refactor/#62] 포인트 내역 조회 응답값에 PK 추가
Gyuhyeok99 May 30, 2024
a9fcc55
Merge pull request #63 from Gyuhyeok99/refactor/#62
Gyuhyeok99 May 30, 2024
0fc2706
Merge pull request #64 from Team-SWAcademy/refactor/#62
Gyuhyeok99 May 30, 2024
497914b
Merge branch 'Team-SWAcademy:develop' into develop
Gyuhyeok99 May 30, 2024
38cb46f
[refactor/#65] 홈화면 다회용기 이용 내역 조회 최신순으로 변경
Gyuhyeok99 May 31, 2024
8a99d74
Merge pull request #66 from Gyuhyeok99/refactor/#65
Gyuhyeok99 May 31, 2024
71d1a9b
Merge pull request #67 from Team-SWAcademy/refactor/#65
Gyuhyeok99 May 31, 2024
0e88f44
Merge branch 'Team-SWAcademy:develop' into develop
Gyuhyeok99 May 31, 2024
962b5c3
[refactor/#68] 카카오 로그인 수정
Gyuhyeok99 Jun 20, 2024
fb0f951
Merge pull request #69 from Gyuhyeok99/refactor/#68
Gyuhyeok99 Jun 20, 2024
b8dd584
Merge pull request #70 from Team-SWAcademy/refactor/#68
Gyuhyeok99 Jun 20, 2024
e76e067
[feat/#72] OCR 인증 기능 추가
Gyuhyeok99 Jun 24, 2024
4d5fe05
Merge pull request #73 from Gyuhyeok99/feat/#72
Gyuhyeok99 Jun 24, 2024
81fd70e
Merge pull request #74 from Team-SWAcademy/feat/#72
Gyuhyeok99 Jun 24, 2024
2001ed4
[feat/#72] 로그인 수정
Gyuhyeok99 Jun 24, 2024
7ee8e4b
Merge pull request #76 from Gyuhyeok99/feat/#72
Gyuhyeok99 Jun 24, 2024
9e5159a
Merge pull request #77 from Team-SWAcademy/feat/#72
Gyuhyeok99 Jun 24, 2024
a7635f7
[feat/#72] OCR 인증 수정
Gyuhyeok99 Jun 25, 2024
8666226
Merge pull request #78 from Gyuhyeok99/feat/#72
Gyuhyeok99 Jun 25, 2024
dfeb906
Merge pull request #79 from Team-SWAcademy/feat/#72
Gyuhyeok99 Jun 25, 2024
8d4c47a
Update README.md
Gyuhyeok99 Jun 26, 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
12 changes: 12 additions & 0 deletions .ebextensions-dev/00-makeFiles.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
files:
"/sbin/appstart":
mode: "000755"
owner: webapp
group: webapp
content: |
#!/usr/bin/env bash
JAR_PATH=/var/app/current/application.jar

# run app
killalljava
java -Dfile.encoding=UTF-8 -jar $JAR_PATH --spring.profiles.active=dev
3 changes: 3 additions & 0 deletions .ebextensions-dev/01-set-timezone.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
commands:
set_time_zone:
command: ln -f -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
12 changes: 12 additions & 0 deletions .ebextensions-prod/00-makeFiles.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
files:
"/sbin/appstart":
mode: "000755"
owner: webapp
group: webapp
content: |
#!/usr/bin/env bash
JAR_PATH=/var/app/current/application.jar

# run app
killalljava
java -Dfile.encoding=UTF-8 -jar $JAR_PATH --spring.profiles.active=prod
3 changes: 3 additions & 0 deletions .ebextensions-prod/01-set-timezone.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
commands:
set_time_zone:
command: ln -f -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/✨feat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: "✨Feat"
about: feat
title: "[FEAT]"
labels: "✨feature"
assignees: ''

---

:exclamation:**이슈내용**
---
content

:star:**상세 내용**
---
- content

:white_check_mark:**체크리스트**
---
- [ ] content

:mag_right:**레퍼런스**
---
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/🆘help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F198Help"
about: I got trouble, help me please
title: "[HELP]"
labels: help wanted
assignees: ''

---

:question:**이슈 내용**
---
content

:mag_right:**경로**
---
content

:sparkles:**의도한 결과**
---
content
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/🐛bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: "\U0001F41BBug report"
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

---

:rage:**오류 설명**
A clear and concise description of what the bug is.

---
:mag_right:**오류 발생 상황**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

---
:grin:**의도한 결과**
A clear and concise description of what you expected to happen.

---
:fireworks:**스크린샷**
If applicable, add screenshots to help explain your problem.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/🚑fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F691Fix"
about: I fix bug
title: "[FIX]"
labels: ''
assignees: ''

---

:mag_right:**기존 문제점 및 해결 방안**
---
content

:wrench:**수정한 내용**
---
content

:fireworks:**스크린샷**
---
content
75 changes: 75 additions & 0 deletions .github/workflows/develop_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Swacademy Dev CI/CD

on:
pull_request:
types: [closed]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'develop'


steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash


- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash


- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: "+09:00"

- name: Show Current Time
run: echo "CurrentTime=$"
shell: bash




- name: Generate deployment package
run: |
mkdir -p deploy
cp build/libs/*.jar deploy/application.jar
cp Procfile deploy/Procfile
cp -r .ebextensions-dev deploy/.ebextensions
cp -r .platform deploy/.platform
cd deploy && zip -r deploy.zip .


- name: Debug Beanstalk Deploy
run: |
echo "AWS_ACTION_ACCESS_KEY_ID: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}"
echo "AWS_ACTION_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}"

- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v20
with:
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}
application_name: swacademy-dev
environment_name: Swacademy-dev-env
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-2
deployment_package: deploy/deploy.zip
wait_for_deployment: false


75 changes: 75 additions & 0 deletions .github/workflows/develop_prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Swacademy Prod CI/CD

on:
pull_request:
types: [closed]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'


steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'

- name: Grant execute permission for gradlew
run: chmod +x ./gradlew
shell: bash


- name: Build with Gradle
run: ./gradlew clean build -x test
shell: bash


- name: Get current time
uses: 1466587594/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss
utcOffset: "+09:00"

- name: Show Current Time
run: echo "CurrentTime=$"
shell: bash




- name: Generate deployment package
run: |
mkdir -p deploy
cp build/libs/*.jar deploy/application.jar
cp Procfile deploy/Procfile
cp -r .ebextensions-prod deploy/.ebextensions
cp -r .platform deploy/.platform
cd deploy && zip -r deploy.zip .


- name: Debug Beanstalk Deploy
run: |
echo "AWS_ACTION_ACCESS_KEY_ID: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}"
echo "AWS_ACTION_SECRET_ACCESS_KEY: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}"

- name: Beanstalk Deploy
uses: einaregilsson/beanstalk-deploy@v20
with:
aws_access_key: ${{ secrets.AWS_ACTION_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_ACTION_SECRET_ACCESS_KEY }}
application_name: swacademy-prod
environment_name: Swacademy-prod-env
version_label: github-action-${{ steps.current-time.outputs.formattedTime }}
region: ap-northeast-2
deployment_package: deploy/deploy.zip
wait_for_deployment: false


39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

src/main/generated/
67 changes: 67 additions & 0 deletions .platform/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
user nginx;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
worker_processes auto;
worker_rlimit_nofile 33282;

events {
use epoll;
worker_connections 1024;
multi_accept on;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;


types_hash_max_size 2048;
types_hash_bucket_size 128;


log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

include conf.d/*.conf;

map $http_upgrade $connection_upgrade {
default "upgrade";
}

upstream springboot {
server 127.0.0.1:8080;
keepalive 1024;
}

server {
listen 80 default_server;
listen [::]:80 default_server;

location / {
proxy_pass http://springboot;
# CORS 관련 헤더 추가
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Authorization, Content-Type';
proxy_http_version 1.1;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

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

client_header_timeout 60;
client_body_timeout 60;
keepalive_timeout 60;
gzip off;
gzip_comp_level 4;

# Include the Elastic Beanstalk generated locations
include conf.d/elasticbeanstalk/healthd.conf;
}
}
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: appstart
Loading