Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-document-rewrite-url doesn't work as expected #43

Closed
ian-kent opened this issue Feb 23, 2017 · 1 comment
Closed

-document-rewrite-url doesn't work as expected #43

ian-kent opened this issue Feb 23, 2017 · 1 comment

Comments

@ian-kent
Copy link

From the documentation, it looks as though I should be able to do:
-document-rewrite-url=from.url=to.url
but this doesn't appear to have any effect on the host parameter in my swagger.json file, meaning the API explorer and endpoint URLs always show the original host

We can replace the host in the json file, but (with Docker) means building a new container for each environment, rather than customising it with environment variables

@zxchris
Copy link
Collaborator

zxchris commented Mar 6, 2017

Use -spec-rewrite-url that does what you want.
-document-rewrite-url changes the URL's found in the documentation (those pulled in from guides, overlays etc).
The combination of the two will allow you to have one container deployed in different environments (like moving from dev to test to live).

@zxchris zxchris closed this as completed Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants