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

Rename DOMAIN to HOST_PORT #19

Closed
wants to merge 1 commit into from
Closed

Rename DOMAIN to HOST_PORT #19

wants to merge 1 commit into from

Conversation

orkunkl
Copy link
Contributor

@orkunkl orkunkl commented Feb 17, 2020

Resolves #15

docs.SwaggerInfo.Host = conf.Domain
docsUrl := fmt.Sprintf("http://%s%s/docs/doc.json", conf.Domain, conf.HTTP)
docs.SwaggerInfo.Host = conf.HostPort
docsUrl := fmt.Sprintf("http://%s%s/docs/doc.json", conf.HostPort, conf.HTTP)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using HOST_PORT and HTTP breaks docUrl. Maybe we need to re-think this since we're specifying the port in two different env vars. I'll have to get back to you after my meetings this afternoon.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@orkunkl orkunkl closed this Feb 18, 2020
@orkunkl orkunkl deleted the rename-domain branch February 18, 2020 13:38
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

Successfully merging this pull request may close these issues.

Refactor DOMAIN env to be HOST and PORT
2 participants