kyle
bf77474a11
use HTTPS for Petstore by default ( #4652 )
2018-06-15 14:36:15 -07:00
masacc
a2fee7ed58
[FIX] nested url option replacement when $API_URLS contains url: .*, pattern ( #4601 )
2018-06-01 13:24:22 -07:00
Paulo Schneider
f29202fed8
improve(docker): support multiple API URLs option ( #4044 )
...
The API_URLS environment variable can be used to run the Docker image with multiple urls.
Example:
docker run -p 80:8080 -e API_URLS=[{name:"First API", url:"http://firstapiurl "},{name:"Second API", url:"http://secondapiurl "}] swaggerapi/swagger-ui
2018-01-19 12:35:20 -06:00
David Muto
5b1dbec9b0
feature(docker-image): allow custom nginx port within container ( #4086 )
...
* Use PORT to override nginx listen port when defined
* Add dockerignore to make build context smaller
2018-01-12 13:52:09 -06:00
Udit Desai
a037c7205b
improve(docker-image): symlink swagger.json from app directory to nginx ( #4024 )
2018-01-11 17:06:56 -06:00
Jatesadakarn Saengrat
8e4f94b33f
Change nginx configuration based on BASE_URL, instead of moving actual files
2018-01-05 18:56:30 +07:00
Michael Parker
5db4131046
Allow UI base url to be customizable
2017-11-28 12:01:49 -06:00
Juhamatti Niemelä
6dd5d80770
Fix accessing bundled swagger json behind reverse proxy
...
If swagger-ui is run behind reverse proxy in path other than / accessing
bundled swagger json configured in SWAGGER_JSON env variable will fail.
Fix that by changing REL_PATH prefix from `/` to `./`
2017-10-24 16:42:51 +03:00
Tony Tam
08c691894d
extract basename from $SWAGGER_JSON file
2017-06-09 11:40:33 -07:00
Franz Wong
20e7c0708a
Copy swagger.json to nginx directory
2017-06-03 13:01:11 +09:00
redsux
adf9f2d8aa
Fix issue #2936
...
Fix "sed" regex in docker-run.sh to use the VALIDATOR_URL environment variable.
Don't use it in quotes if it's defined to "null" or "undefined".
2017-04-21 10:58:50 +02:00
Tony Tam
2b159372a9
removed dead line
2017-04-14 14:12:55 -07:00
Tony Tam
3ce9baee30
added variables for docker
2017-04-11 13:59:34 -07:00