Skip to content

Commit 1579b36

Browse files
committed
Merge pull request #28 from github/httpsbugs
Fix a few bugs around using https
2 parents 6a7a18b + 7aed15f commit 1579b36

File tree

6 files changed

+39
-44
lines changed

6 files changed

+39
-44
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ NOTE: If using https with a self signed cert also disable cert checking in the c
7272
url = "https://localhost:8080/jimdoe/lfsrepo"
7373
7474
[http]
75-
selfverify = false
75+
sslfverify = false
7676
7777
```
7878

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Configuration struct {
1919
AdminPass string `config:""`
2020
Cert string `config:""`
2121
Key string `config:""`
22-
Scheme string `config:""`
22+
Scheme string `config:"http"`
2323
}
2424

2525
func (c *Configuration) IsHTTPS() bool {

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
const (
1414
contentMediaType = "application/vnd.git-lfs"
1515
metaMediaType = contentMediaType + "+json"
16-
version = "0.2.0"
16+
version = "0.2.1"
1717
)
1818

1919
var (

mgmt-css.rice-box.go

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

mgmt-templates.rice-box.go

Lines changed: 24 additions & 38 deletions
Large diffs are not rendered by default.

mgmt/templates/config.tmpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@
1111
url = "{{.Config.Scheme}}://{{.Config.Host}}/user/repo"
1212
</code>
1313
</pre>
14+
15+
{{if eq .Config.Scheme "https"}}
16+
<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>
17+
<pre>
18+
<code>[http]
19+
sslverify = false
20+
</code>
21+
</pre>
22+
{{end}}
1423
</div>

0 commit comments

Comments
 (0)