Skip to content

Commit

Permalink
Change app.ts for node_tls_reject
Browse files Browse the repository at this point in the history
  • Loading branch information
biermapa authored and biermapa committed Nov 4, 2021
1 parent 298abeb commit d324494
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const app = express()
if (!CONFIG.dev_mode) {
app.set("trust proxy", 1) // trust first proxy
sessionConf.cookie.secure = true // serve secure cookies
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"
} else {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0" // disable tls rejects
}
Expand Down

0 comments on commit d324494

Please sign in to comment.