Commit 78bdd7df authored by Grant's avatar Grant
Browse files

trust proxy in prod

parent af1c8fd5
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,6 +25,11 @@ class Webserver_ {
  constructor() {
    this.app = express();

    if (process.env.NODE_ENV === "production") {
      this.app.enable("trust proxy");
      this.app.set("trust proxy", true);
    }

    this.app.use(morgan("tiny"));

    this.app.get("/", (req, res) => {