func (h *authHandler) setup() {
os.Setenv("ARVADOS_API_HOST", theConfig.Client.APIHost)
+ if theConfig.Client.Insecure {
+ os.Setenv("ARVADOS_API_HOST_INSECURE", "1")
+ } else {
+ os.Setenv("ARVADOS_API_HOST_INSECURE", "")
+ }
h.clientPool = arvadosclient.MakeClientPool()
}
s.tmpRepoRoot = s.gitoliteHome + "/repositories"
s.Config = &Config{
Client: arvados.Client{
- APIHost: os.Getenv("ARVADOS_API_HOST"),
+ APIHost: os.Getenv("ARVADOS_API_HOST"),
+ Insecure: true,
},
Listen: ":0",
GitCommand: "/usr/share/gitolite3/gitolite-shell",
if s.Config == nil {
s.Config = &Config{
Client: arvados.Client{
- APIHost: os.Getenv("ARVADOS_API_HOST"),
+ APIHost: os.Getenv("ARVADOS_API_HOST"),
+ Insecure: true,
},
Listen: ":0",
GitCommand: "/usr/bin/git",