这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@lmars
Copy link
Contributor

@lmars lmars commented Feb 28, 2015

Previously, the presence of TLS certificates would cause dokku urls to output all https URLs, even for domains which were not configured to use TLS.

This change introduces a URLS file in the app's directory which contains the URLs with schemes based on whether they have been configured to use TLS in the nginx config.

Copy link
Member

Choose a reason for hiding this comment

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

Do we need the extra output? If so, you should use the helper in common for this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really needed no, dropped.

Previously, the presence of TLS certificates would cause `dokku urls` to
output all https URLs, even for domains which were not configured to use
TLS.

This change introduces a URLS file in the app's directory which contains
the URLs with schemes based on whether they have been configured to use
TLS in the nginx config.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
@michaelshobbs
Copy link
Member

In reference to my comment on #1008, perhaps we can write a test that ensures we don't return https for domains that only partially match the cert CN. (i.e. CN=*.dokku.me and domain is www.test.dokku.me)

@lmars
Copy link
Contributor Author

lmars commented Mar 8, 2015

@michaelshobbs I have fixed the sub-subdomain match issue in #1008

michaelshobbs added a commit that referenced this pull request Mar 9, 2015
Fix URL schemes in `dokku urls` output
@michaelshobbs michaelshobbs merged commit 42ee978 into dokku:master Mar 9, 2015
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.

3 participants