Issue with Swagger when deploying to AWS Beanstalk - Node.js - Nginx

Viewed 394

I'm deploying this app to Beanstalk of which the underlying EC2 instance uses Node.js v12 and Nginx.

When the app is run at my localhost, swagger docs is rendered normally as expected.

But when deploying to Beanstalk, the result is timeout The reason, as I've been inspecting until now, is that all of the accompanying resource files are loaded from https protocol, which is not available at Beanstalk server, while the source index.html is loaded from http protocol.

Note that the protocol my beanstalk is http, as you could see from the screenshot.

image

Related source code

Thank you for any helps!

0 Answers
Related