Skip to content

Commit

Permalink
fix nginx https
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jul 4, 2022
1 parent 211e2ea commit f7f5bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function bootstrap(version: string): Promise<void> {
if (process.env.ENABLE_NGINX) {
await cluster.setupNginx(join(__dirname, '..'), cluster.port, proto)
}
const server = cluster.setupExpress(proto === 'https')
const server = cluster.setupExpress(proto === 'https' && !process.env.ENABLE_NGINX)
try {
await cluster.listen()
await cluster.enable()
Expand Down

0 comments on commit f7f5bdc

Please sign in to comment.