https://github.com/zx2c4/git-daemon-dummy
Read-only mirror of https://git.zx2c4.com/git-daemon-dummy/about . Pull requests and issues on GitHub cannot be accepted and will be automatically closed.
https://github.com/zx2c4/git-daemon-dummy
Last synced: 3 months ago
JSON representation
Read-only mirror of https://git.zx2c4.com/git-daemon-dummy/about . Pull requests and issues on GitHub cannot be accepted and will be automatically closed.
- Host: GitHub
- URL: https://github.com/zx2c4/git-daemon-dummy
- Owner: zx2c4
- License: gpl-3.0
- Created: 2017-02-15T00:33:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-01T07:33:01.000Z (about 5 years ago)
- Last Synced: 2025-01-13T02:48:52.122Z (4 months ago)
- Language: C
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Git Daemon Dummy: 301 Redirects for `git://`
With the wide deployment of HTTPS, the plaintext nature of `git://`
is becoming less and less desirable. In order to inform users of
the `git://`-based URIs to switch to `https://`-based URIs, while
still being able to shut down aging `git-daemon` infrastructure,
this `git-daemon-dummy` is an extremely lightweight daemon that
simply provides an informative error message to connecting `git://`
users, providing the new URI.It drops all privileges, `chroot`s, sets `rlimit`s, and uses `seccomp-bpf` to limit the
amount of available syscalls. To remain high performance, it makes
use of `epoll`.### Example
zx2c4@thinkpad ~ $ git clone git://git.zx2c4.com/cgit
Cloning into 'cgit'...
fatal: remote error:
******************************************************
This git repository has moved! Please clone with:
$ git clone https://git.zx2c4.com/cgit
******************************************************### Usage
Usage: ./git-daemon-dummy [OPTION]...
-d, --daemonize run as a background daemon
-f, --foreground run in the foreground (default)
-P FILE, --pid-file=FILE write pid of listener process to FILE
-p PORT, --port=PORT listen on port PORT (default=9418)
-h, --help display this message