remove KeyDir
This commit is contained in:
parent
7e8a7dfadd
commit
d40777b1ad
5
main.go
5
main.go
@ -21,12 +21,10 @@ func envOr(name string, def string) string {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
repos := envOr("GITLE_REPOS", "/var/gitle/repos")
|
repos := envOr("GITLE_REPOS", "/var/gitle/repos")
|
||||||
keys := envOr("GITLE_KEYS", "/var/gitle/keys")
|
|
||||||
akSrc := envOr("GITLE_AUTH_KEYS", "var/gitle/authorized_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(repos, "rwc")
|
||||||
protect.Unveil(keys, "r")
|
|
||||||
protect.Unveil(akSrc, "r")
|
protect.Unveil(akSrc, "r")
|
||||||
protect.Unveil(hostKey, "r")
|
protect.Unveil(hostKey, "r")
|
||||||
protect.Unveil("/dev", "r")
|
protect.Unveil("/dev", "r")
|
||||||
@ -36,7 +34,6 @@ func main() {
|
|||||||
|
|
||||||
server := gitkit.NewSSH(gitkit.Config{
|
server := gitkit.NewSSH(gitkit.Config{
|
||||||
Dir: repos,
|
Dir: repos,
|
||||||
KeyDir: keys,
|
|
||||||
AutoCreate: true,
|
AutoCreate: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user