diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -23,11 +23,16 @@ func main() { if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, - c.Dirs.Templates}, + c.Dirs.Templates, + }, "r"); err != nil { log.Fatalf("unveil: %s", err) } + if err := Unveil("/usr/local/bin/git", "rx"); err != nil { + log.Fatalf("unveil: %s", err) + } + mux := routes.Handlers(c) addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port) log.Println("starting server on", addr) |