Skip to content

Commit

Permalink
Merge pull request #28 from github/httpsbugs
Browse files Browse the repository at this point in the history
Fix a few bugs around using https
  • Loading branch information
rubyist committed May 6, 2015
2 parents 6a7a18b + 7aed15f commit 1579b36
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 44 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ NOTE: If using https with a self signed cert also disable cert checking in the c
url = "https://localhost:8080/jimdoe/lfsrepo"
[http]
selfverify = false
sslfverify = false
```

Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Configuration struct {
AdminPass string `config:""`
Cert string `config:""`
Key string `config:""`
Scheme string `config:""`
Scheme string `config:"http"`
}

func (c *Configuration) IsHTTPS() bool {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
const (
contentMediaType = "application/vnd.git-lfs"
metaMediaType = contentMediaType + "+json"
version = "0.2.0"
version = "0.2.1"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions mgmt-css.rice-box.go

Large diffs are not rendered by default.

62 changes: 24 additions & 38 deletions mgmt-templates.rice-box.go

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions mgmt/templates/config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@
url = "{{.Config.Scheme}}://{{.Config.Host}}/user/repo"
</code>
</pre>

{{if eq .Config.Scheme "https"}}
<p>Your server is configured to use https. If you're using self signed certificates, or are getting SSL errors, you can add the following to your <code>.gitconfig</code> file:</p>
<pre>
<code>[http]
sslverify = false
</code>
</pre>
{{end}}
</div>

0 comments on commit 1579b36

Please sign in to comment.