Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions sprint10/endpoint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
http://43.201.49.220
9 changes: 9 additions & 0 deletions sprint10/infra/ec2/ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
apps: [{
name: "pandamarket",
script: "./build/main.js",
env: {
NODE_ENV: "production",
}
}]
};
13 changes: 13 additions & 0 deletions sprint10/infra/ec2/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
server {
listen 80;
server_name _;

location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Binary file added sprint10/infra/ec2/secure-group-inbound.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprint10/infra/ec2/secure-group-outbound.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions sprint10/infra/ec2/start.sh.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# AWS에 접속
- 키 파일 있는 곳에서 터미널 → ssh -i "sprint10-key.pem" ec2-user@43.201.49.220( ec2 퍼블릭 ip )

# 의존성 설치 및 빌드
npm install
npm run build

# PM2 시작 및 자동 실행
pm2 start ecosystem.config.js
pm2 save
pm2 startup
Binary file added sprint10/infra/rds/secure-group-inbound.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprint10/infra/rds/secure-group-outbound.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sprint10/infra/s3/policy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.