From d40777b1ad197a329481c2dcd0eaa79f6d351e55 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 21 Jun 2022 11:53:09 -0600 Subject: [PATCH] remove KeyDir --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index d9edaec..27179be 100644 --- a/main.go +++ b/main.go @@ -21,12 +21,10 @@ func envOr(name string, def string) string { func main() { repos := envOr("GITLE_REPOS", "/var/gitle/repos") - keys := envOr("GITLE_KEYS", "/var/gitle/keys") akSrc := envOr("GITLE_AUTH_KEYS", "var/gitle/authorized_keys") - hostKey := envOr("GITLE_HOST_KEY", "/var/gitle/key") + hostKey := envOr("GITLE_HOST_KEY", "/var/gitle/host_key") protect.Unveil(repos, "rwc") - protect.Unveil(keys, "r") protect.Unveil(akSrc, "r") protect.Unveil(hostKey, "r") protect.Unveil("/dev", "r") @@ -36,7 +34,6 @@ func main() { server := gitkit.NewSSH(gitkit.Config{ Dir: repos, - KeyDir: keys, AutoCreate: true, })