swagger-editor 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/swagger-editor-bundle.js +1 -1
- package/dist/swagger-editor-bundle.js.map +1 -1
- package/dist/swagger-editor-es-bundle-core.js +1 -1
- package/dist/swagger-editor-es-bundle.js +1 -1
- package/dist/swagger-editor.css +1 -1
- package/dist/swagger-editor.css.map +1 -1
- package/dist/swagger-editor.js +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -121,12 +121,18 @@ docker run -d -p 80:8080 -v $(pwd):/tmp -e SWAGGER_FILE=/tmp/swagger.json swagge
|
|
|
121
121
|
|
|
122
122
|
**Note:** When both `URL` and `SWAGGER_FILE` environment variables are set, `URL` has priority and `SWAGGER_FILE` is ignored.
|
|
123
123
|
|
|
124
|
-
* You can specify a different base url for accessing the application - for example if you want the application to be available at `http://localhost/swagger-editor/`:
|
|
124
|
+
* You can specify a different base url via `BASE_URL` variable for accessing the application - for example if you want the application to be available at `http://localhost/swagger-editor/`:
|
|
125
125
|
|
|
126
126
|
```
|
|
127
127
|
docker run -d -p 80:8080 -e BASE_URL=/swagger-editor swaggerapi/swagger-editor
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
+
* You can specify a different port via `PORT` variable for accessing the application, default is `8080`.
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
docker run -d -p 80:80 -e PORT=80 swaggerapi/swagger-editor
|
|
134
|
+
```
|
|
135
|
+
|
|
130
136
|
You can also customize the different endpoints used by the Swagger Editor with the following environment variables. For instance, this can be useful if you have your own Swagger generator server:
|
|
131
137
|
|
|
132
138
|
Environment variable | Default value
|