서버쪽을 node를 통해서 만들어 보고 있습니다.
postman에서 토큰을 통해서 두명의 유저가 각각의 글을 쓰는 것까지가 데모입니다.
마이크산 기념으로 목소리도 넣어 봤습니다. ㅠㅠ
https://youtu.be/4mGHI1yc1b4
댓글 7개
letsencrypt에서 인증서 만들고 우분투에서 돌고 있던 nginx(https도 함께 운영중이었음) 내리고, node 실행하니 제대로 동작하네요 : )
https://api.lovingword.net 으로... ㅎㅎ (아직 라우팅 기능 등 하나도 없지만... ^^;)
========================
const express = require('express');
const fs = require('fs');
const path = require('path');
const https = require('https');
const PORT = process.env.PORT || 443;
const app = express();
const options = {
key: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/cert.pem'),
ca: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/fullchain.pem')
};
https.createServer(options, app).listen(PORT);
https://api.lovingword.net 으로... ㅎㅎ (아직 라우팅 기능 등 하나도 없지만... ^^;)
========================
const express = require('express');
const fs = require('fs');
const path = require('path');
const https = require('https');
const PORT = process.env.PORT || 443;
const app = express();
const options = {
key: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/privkey.pem'),
cert: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/cert.pem'),
ca: fs.readFileSync('/etc/letsencrypt/live/api.lovingword.net/fullchain.pem')
};
https.createServer(options, app).listen(PORT);
게시글 목록
| 번호 | 제목 |
|---|---|
| 161 | |
| 160 | |
| 150 | |
| 149 | |
| 141 | |
| 139 | |
| 138 | |
| 132 | |
| 127 | |
| 123 | |
| 117 | |
| 116 | |
| 114 | |
| 111 | |
| 109 | |
| 103 | |
| 101 | |
| 99 | |
| 93 | |
| 90 | |
| 84 | |
| 79 | |
| 66 | |
| 48 | |
| 47 | |
| 43 | |
| 37 | |
| 36 | |
| 34 | |
| 33 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기