feat: setup proxy and x-forwarded-for header

This commit is contained in:
wancat committed 2023-10-31 00:15:39 +08:00
1 parent c10b05c401
commit 3b9ea9ea50
3 files changed
+5

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ async function main() {
const app = express()
const server = http.createServer(app)
socketServer(server)
app.set('trust proxy', true)
app.use(errorHandler)
app.use(globalRateLimit)
app.use(sessionMiddleware)