express 로 sunnyforpv.kr 웹서버 만들기
express --view=ejs sunnyforpv.kr cd sunnyforpv.kr yarn install yarn upgrade # write .env PORT=8092 TZ=Asia/Seoul pm2 start sunnyforpv.config.js pm2 restart all -i max pm2 list # check web app curl http://127.0.0.1:8092 # write nginx conf server { listen 80; server_name sunnyforpv.kr www.sunnyforpv.kr; root /home/eoullim/server/sunnyforpv.kr; location / { proxy_pass http://127.0.0.1:8092; 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; } } sudo certbot --nginx -d sunnyforpv.kr -d www.sunnyforpv.kr sudo systemctl restart nginx