Skip to content

Commit

Permalink
Update README for reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pasela committed Mar 27, 2018
1 parent d0006cc commit 3c903d4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ See: https://git-scm.com/book/en/v2/Git-on-the-Server-Smart-HTTP

## Features

* Cross-platform
* Simple and lightweight
* Support HTTP authentication (Basic and Digest)
* Support TLS
Expand Down Expand Up @@ -52,6 +53,28 @@ git-cgi-server --cert-file=/path/to/server.crt --key-file=/path/to/server.key /p

See `git-cgi-server -h` for more options.

## Running git-cgi-server behind reverse proxy server

You can also serve git-cgi-server with reverse proxy.

Apache example: `/etc/httpd/conf.d/git.conf`

```apache
# Git Smart HTTP
ProxyPass /git http://localhost:10789/git
ProxyPassReverse /git http://localhost:10789/git
```

```sh
git-cgi-server" \
--addr=:10789 \
--digest-auth-file=/path/to/.htdigest \
--auth-realm=Git \
--uri-prefix=/git/ \
--export-all \
/path/to/repos
```
## License
Apache 2.0 License
Expand Down

0 comments on commit 3c903d4

Please sign in to comment.