How would you go about changing the default port of swagger-ui dist version?
By default it listens to requests on port 8080
. I want it to listen to some other port. The use case is that we want to have a couple of dists running on our host but listening on different ports.
Is this possible or do you actually need to do some more complicated setup?
We run it via node js default package:
{ "name": "dist", "version": "1.0.0", "description": "", "main": "swagger-ui-bundle.js", "scripts": { "start": "http-server" }, "keywords": [], "author": "", "license": "ISC" }
2 Answers
Answers 1
Answers 2
The simples solution that I know Is just to use docker and map port by -p 80:8080
:
0 comments:
Post a Comment