Skip to content

Commit

Permalink
prepare the express app to be behind a proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mojitoj committed Jun 29, 2020
1 parent 5a72789 commit b5e8824
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ const FHIR_SERVER_BASE = process.env.FHIR_SERVER_BASE;

const app = express();

app.set("trust proxy", true);

//middlewares
app.use(morgan("dev"));
process.env.NODE_ENV === "production" || app.use(morgan("dev"));

const proxyOptions = {
target: FHIR_SERVER_BASE,
Expand Down

0 comments on commit b5e8824

Please sign in to comment.