Skip to content

Commit

Permalink
Bring back the reverse proxy in node
Browse files Browse the repository at this point in the history
  • Loading branch information
MotorTruck1221 committed May 5, 2024
1 parent 0006758 commit cd49dc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nodeJS/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ await app
}
}
})
.register(fastifyHttpProxy, {
upstream: 'https://rawcdn.githack.com',
prefix: '/gms/',
http2: false,
})
.register(fastifyMiddie)

app.listen({ port: nodePort, host: '0.0.0.0' });
Expand Down

0 comments on commit cd49dc9

Please sign in to comment.