Skip to content

Commit cd49dc9

Browse files
Bring back the reverse proxy in node
1 parent 0006758 commit cd49dc9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nodeJS/server.js

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ await app
6969
}
7070
}
7171
})
72+
.register(fastifyHttpProxy, {
73+
upstream: 'https://rawcdn.githack.com',
74+
prefix: '/gms/',
75+
http2: false,
76+
})
7277
.register(fastifyMiddie)
7378

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

0 commit comments

Comments
 (0)