쿼츠 블로그를 위해 대공사

This commit is contained in:
2026-04-08 13:07:41 +09:00
parent 123642831e
commit 1319881195
606 changed files with 50625 additions and 2 deletions
@@ -0,0 +1,20 @@
```bash
npm install express
npm isntall http-proxy-middleware
```
``` js
const express = require('express');
const { createProxyMiddleware } = require('http-proxy-middleware');
const app = express();
const PORT = 9005;
// "/api"로 시작하는 모든 요청을 다른 서버로 포워딩합니다.
app.use('*', createProxyMiddleware({ target: 'http://192.168.101.67:8080', changeOrigin: true }));
// 서버 시작
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});
```