Skip to content

Commit

Permalink
Merge pull request swagger-api#3810 from iiska/relative-json-path
Browse files Browse the repository at this point in the history
Fix accessing bundled swagger json behind reverse proxy
  • Loading branch information
webron authored Oct 24, 2017
2 parents 96b0b04 + 6dd5d80 commit c2bdb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi

if [[ -f $SWAGGER_JSON ]]; then
cp $SWAGGER_JSON $NGINX_ROOT
REL_PATH="/$(basename $SWAGGER_JSON)"
REL_PATH="./$(basename $SWAGGER_JSON)"
sed -i "s|http://petstore.swagger.io/v2/swagger.json|$REL_PATH|g" $INDEX_FILE
sed -i "s|http://example.com/api|$REL_PATH|g" $INDEX_FILE
else
Expand Down

0 comments on commit c2bdb3a

Please sign in to comment.