|
|
@ -385,7 +385,7 @@ func (s *Server) StartTLS() {
|
|
|
|
CAFile: filepath.Join("../../testdata", "rootca.crt"),
|
|
|
|
CAFile: filepath.Join("../../testdata", "rootca.crt"),
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
if err := r.WriteFile(repoConfig, 0644); err != nil {
|
|
|
|
if err := r.WriteFile(repoConfig, 0600); err != nil {
|
|
|
|
panic(err)
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -400,6 +400,7 @@ func (s *Server) Stop() {
|
|
|
|
// URL returns the URL of the server.
|
|
|
|
// URL returns the URL of the server.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Example:
|
|
|
|
// Example:
|
|
|
|
|
|
|
|
//
|
|
|
|
// http://localhost:1776
|
|
|
|
// http://localhost:1776
|
|
|
|
func (s *Server) URL() string {
|
|
|
|
func (s *Server) URL() string {
|
|
|
|
return s.srv.URL
|
|
|
|
return s.srv.URL
|
|
|
@ -421,5 +422,5 @@ func setTestingRepository(url, fname string) error {
|
|
|
|
Name: "test",
|
|
|
|
Name: "test",
|
|
|
|
URL: url,
|
|
|
|
URL: url,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return r.WriteFile(fname, 0644)
|
|
|
|
return r.WriteFile(fname, 0640)
|
|
|
|
}
|
|
|
|
}
|
|
|
|