Commit 81d6d32b authored by Jacob Vosmaer's avatar Jacob Vosmaer

Add 'Try it out' instructions

parent d2bbd5f7
......@@ -23,6 +23,21 @@ change in GitLab / NGINX to make this work.
- ..end POST to gitlab-git-http-server
- end POST to NGINX
## Try it out
You can try out the Git server without authentication as follows:
```
# Start a fake auth backend that allows everything/everybody
go run support/say-yes.go &
# Start gitlab-git-http-server
go run main.go /path/to/git-repos
```
Now if you have a Git repository in `/path/to/git-repos/my-repo.git`,
you can push to and pull from it at the URL
`http://localhost:8181/my-repo.git`.
## License
This code is distributed under the MIT license, see the LICENSE file.
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Yes")
})
log.Fatal(http.ListenAndServe("localhost:8080", nil))
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment