Skip to content

Commit

Permalink
Switch to http protocol since its the internal call
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitades committed Oct 22, 2023
1 parent 0ac14a0 commit af67ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/rmq/metrics-proxy/server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const http = require("http");
const https = require("https");
const verification = require("./verify-token");

const server = http.createServer(async (req, res) => {
Expand All @@ -19,7 +18,7 @@ const server = http.createServer(async (req, res) => {

const rmqMetricsEp = `${process.env.RMQ_ADDRESS}/metrics`;

https.get(rmqMetricsEp, (rres) => {
http.get(rmqMetricsEp, (rres) => {
res.setHeader("Content-type", rres.headers["content-type"]);
res.writeHead(rres.statusCode);
rres.on("data", res.write.bind(res));
Expand Down

0 comments on commit af67ca7

Please sign in to comment.