2

I am using a locally hosted Swagger UI on top of Node on an EC2 Ubuntu instance.

Currently, in a browser when I type localhost:3000/myproject, I get the rendering, which basically pulls: http://localhost:3000/api-docs.json

I would like to protect myproject and api-docs.json so not everyone on the web can access them and nor can Google index them.

Ideally it would nice to add ssh keys so only the hosts that have the key can access the Swagger UI.

Is there a way to do that?

user1107173
  • 10,334
  • 16
  • 72
  • 117

0 Answers0