chore(deps): bump koa-sslify from 2.1.2 to 5.0.0 (#4424)

* chore(deps): bump koa-sslify from 2.1.2 to 5.0.0

Bumps [koa-sslify](https://github.com/turboMaCk/koa-sslify) from 2.1.2 to 5.0.0.
- [Release notes](https://github.com/turboMaCk/koa-sslify/releases)
- [Changelog](https://github.com/turboMaCk/koa-sslify/blob/master/CHANGELOG.md)
- [Commits](https://github.com/turboMaCk/koa-sslify/compare/2.1.2...5.0.0)

---
updated-dependencies:
- dependency-name: koa-sslify
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Nice try dependabot

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
dependabot[bot]
2022-11-14 14:17:05 -08:00
committed by GitHub
parent 1f5171053e
commit 1e723be556
3 changed files with 12 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ import {
referrerPolicy,
} from "koa-helmet";
import mount from "koa-mount";
import enforceHttps from "koa-sslify";
import enforceHttps, { xForwardedProtoResolver } from "koa-sslify";
import env from "@server/env";
import Logger from "@server/logging/Logger";
import routes from "../routes";
@@ -40,7 +40,7 @@ export default function init(app: Koa = new Koa()): Koa {
if (env.FORCE_HTTPS) {
app.use(
enforceHttps({
trustProtoHeader: true,
resolver: xForwardedProtoResolver,
})
);
} else {