diff --git a/Dockerfile b/Dockerfile index f5af14a6..ff4f7540 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ LABEL maintainer="fehguy" ENV VERSION "v2.2.10" ENV FOLDER "swagger-ui-2.2.10" -ENV API_URL "http://petstore.swagger.io/v2/swagger.json" +ENV API_URL "https://petstore.swagger.io/v2/swagger.json" ENV API_URLS "" ENV API_KEY "**None**" ENV OAUTH_CLIENT_ID "**None**" diff --git a/dev-helpers/index.html b/dev-helpers/index.html index 5053956c..e5df4e0f 100644 --- a/dev-helpers/index.html +++ b/dev-helpers/index.html @@ -43,7 +43,7 @@ window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"] // Build a system const ui = SwaggerUIBundle({ - url: "http://petstore.swagger.io/v2/swagger.json", + url: "https://petstore.swagger.io/v2/swagger.json", dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis, diff --git a/dist/index.html b/dist/index.html index 7a45f1d5..ebebce1e 100644 --- a/dist/index.html +++ b/dist/index.html @@ -41,7 +41,7 @@ // Build a system const ui = SwaggerUIBundle({ - url: "http://petstore.swagger.io/v2/swagger.json", + url: "https://petstore.swagger.io/v2/swagger.json", dom_id: '#swagger-ui', deepLinking: true, presets: [ diff --git a/docker-run.sh b/docker-run.sh index 3b0fa43d..ed8828b8 100644 --- a/docker-run.sh +++ b/docker-run.sh @@ -38,10 +38,10 @@ fi if [[ -f $SWAGGER_JSON ]]; then cp -s $SWAGGER_JSON $NGINX_ROOT REL_PATH="./$(basename $SWAGGER_JSON)" - sed -i "s|http://petstore.swagger.io/v2/swagger.json|$REL_PATH|g" $INDEX_FILE + sed -i "s|https://petstore.swagger.io/v2/swagger.json|$REL_PATH|g" $INDEX_FILE sed -i "s|http://example.com/api|$REL_PATH|g" $INDEX_FILE else - sed -i "s|http://petstore.swagger.io/v2/swagger.json|$API_URL|g" $INDEX_FILE + sed -i "s|https://petstore.swagger.io/v2/swagger.json|$API_URL|g" $INDEX_FILE sed -i "s|http://example.com/api|$API_URL|g" $INDEX_FILE fi @@ -59,7 +59,7 @@ if [[ -n "$API_URLS" ]]; then fi # replace the PORT that nginx listens on if PORT is supplied -if [[ -n "${PORT}" ]]; then +if [[ -n "${PORT}" ]]; then sed -i "s|8080|${PORT}|g" /etc/nginx/nginx.conf fi diff --git a/docs/customization/custom-layout.md b/docs/customization/custom-layout.md index 2b71c858..e0214ce3 100644 --- a/docs/customization/custom-layout.md +++ b/docs/customization/custom-layout.md @@ -40,7 +40,7 @@ const OperationsLayoutPlugin = () => { // Provide the plugin to Swagger-UI, and select OperationsLayout // as the layout for Swagger-UI SwaggerUI({ - url: "http://petstore.swagger.io/v2/swagger.json", + url: "https://petstore.swagger.io/v2/swagger.json", plugins: [ OperationsLayoutPlugin ], layout: "OperationsLayout" }) @@ -85,7 +85,7 @@ const AugmentingLayoutPlugin = () => { // Provide the plugin to Swagger-UI, and select AugmentingLayout // as the layout for Swagger-UI SwaggerUI({ - url: "http://petstore.swagger.io/v2/swagger.json", + url: "https://petstore.swagger.io/v2/swagger.json", plugins: [ AugmentingLayoutPlugin ], layout: "AugmentingLayout" }) diff --git a/docs/usage/cors.md b/docs/usage/cors.md index 3b12273e..54212e98 100644 --- a/docs/usage/cors.md +++ b/docs/usage/cors.md @@ -21,7 +21,7 @@ You can verify CORS support with one of three techniques: - Curl your API and inspect the headers. For instance: ```bash -$ curl -I "http://petstore.swagger.io/v2/swagger.json" +$ curl -I "https://petstore.swagger.io/v2/swagger.json" HTTP/1.1 200 OK Date: Sat, 31 Jan 2015 23:05:44 GMT Access-Control-Allow-Origin: * diff --git a/docs/usage/installation.md b/docs/usage/installation.md index 7e010dfe..a9345606 100644 --- a/docs/usage/installation.md +++ b/docs/usage/installation.md @@ -44,7 +44,7 @@ you could do something like this: var SwaggerUIBundle = require('swagger-ui-dist').SwaggerUIBundle const ui = SwaggerUIBundle({ - url: "http://petstore.swagger.io/v2/swagger.json", + url: "https://petstore.swagger.io/v2/swagger.json", dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis, diff --git a/swagger-config.yaml b/swagger-config.yaml index 798b0d27..52ae525a 100644 --- a/swagger-config.yaml +++ b/swagger-config.yaml @@ -1,5 +1,5 @@ --- -url: "http://petstore.swagger.io/v2/swagger.json" +url: "https://petstore.swagger.io/v2/swagger.json" dom_id: "#swagger-ui" validatorUrl: "https://online.swagger.io/validator" oauth2RedirectUrl: "http://localhost:3200/oauth2-redirect.html" diff --git a/test/e2e/helpers/index.html b/test/e2e/helpers/index.html index 6552c857..7ecfdfab 100644 --- a/test/e2e/helpers/index.html +++ b/test/e2e/helpers/index.html @@ -75,7 +75,7 @@ window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"] // Build a system const ui = SwaggerUIBundle({ - url: "http://petstore.swagger.io/v2/swagger.json", + url: "https://petstore.swagger.io/v2/swagger.json", dom_id: '#swagger-ui', presets: [ SwaggerUIBundle.presets.apis,