Skip to content

Commit

Permalink
trying
Browse files Browse the repository at this point in the history
  • Loading branch information
sukanya-rath authored May 10, 2024
1 parent b7fc0dc commit 237af06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const metricsMiddleware = promBundle({
promRegistry: register,
});
const app = express();
app.set('trust proxy', 1);
app.set('trust proxy', true);
const apiRouter = express.Router();

const JWTStrategy = passportJWT.Strategy;
Expand Down
5 changes: 3 additions & 2 deletions frontend/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@
Feature-Policy "fullscreen 'self'; camera 'none'; microphone 'none'"
}
# Proxy requests to API service
reverse_proxy /api/* {$BACKEND_URL}
}
reverse_proxy /api/* {$BACKEND_URL}{
header_up X-Forwarded-Proto https
}
:3001 {
handle /health {
respond "OK"
Expand Down

0 comments on commit 237af06

Please sign in to comment.