Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-workhorse
Commits
81d6d32b
Commit
81d6d32b
authored
Jul 28, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'Try it out' instructions
parent
d2bbd5f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
README.md
README.md
+15
-0
support/say-yes.go
support/say-yes.go
+15
-0
No files found.
README.md
View file @
81d6d32b
...
@@ -23,6 +23,21 @@ change in GitLab / NGINX to make this work.
...
@@ -23,6 +23,21 @@ change in GitLab / NGINX to make this work.
-
..end POST to gitlab-git-http-server
-
..end POST to gitlab-git-http-server
-
end POST to NGINX
-
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
## License
This code is distributed under the MIT license, see the LICENSE file.
This code is distributed under the MIT license, see the LICENSE file.
support/say-yes.go
0 → 100644
View file @
81d6d32b
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
))
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment