Skip to content

Commit

Permalink
Add logging to server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jirik committed Nov 9, 2023
1 parent f1d8c04 commit d0d48a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const add_layman_proxy_headers = (proxyReq, req, res) => {
proxyReq.setHeader('X-Forwarded-Proto', req.protocol);
proxyReq.setHeader('X-Forwarded-Host', req.get('host'));
proxyReq.setHeader('X-Forwarded-Prefix', BASEPATH);
console.log(`req.protocol=${req.protocol}`)
console.log(`X-Forwarded-Proto=${req.get('X-Forwarded-Proto')}`)
}

nextjs_app.prepare()
Expand Down

0 comments on commit d0d48a4

Please sign in to comment.