Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitades committed Oct 22, 2023
1 parent 3371d64 commit 7c28400
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions apps/rmq/metrics-proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ const server = http.createServer(async (req, res) => {
const rmqMetricsEp = `${process.env.RMQ_ADDRESS}/metrics`;

http.get(rmqMetricsEp, (rres) => {
console.log("rabbitmq responded")
res.setHeader("Content-type", rres.headers["content-type"]);
res.writeHead(rres.statusCode);
console.log("status is " + rres.statusCode);
rres.on("data", res.write.bind(res));
rres.on("end", res.end.bind(res));
});
Expand Down
1 change: 1 addition & 0 deletions apps/rmq/metrics-proxy/verify-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const jwksrsa = require("jwks-rsa");
const getKey = async (header) => {
const client = new jwksrsa.JwksClient({
jwksUri: `${process.env.KEYCLOAK_REALM_ADDRESS}/protocol/openid-connect/certs`,
requestAgent: http.Agent(),
});

return await client.getSigningKey(header.kid);
Expand Down

0 comments on commit 7c28400

Please sign in to comment.