File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
A daemon to mirror remote Git repositories and serve them over HTTP, automatically updating the mirror as needed.
7
7
8
- It can be used in CI environments to improve the performance of Git clone operations.
8
+ It was developed to be used in CI environments to improve the performance of Git clone operations.
9
9
10
- This is a C++/CURL clone of jonasmalacofilho's [ git-cache-http-server] ( https://github.com/jonasmalacofilho/git-cache-http-server ) .
10
+ The project is a C++/CURL clone of jonasmalacofilho's [ git-cache-http-server] ( https://github.com/jonasmalacofilho/git-cache-http-server ) .
11
11
12
12
## Build Instructions
13
13
14
14
* Clone the repository and initialize submodules.
15
15
* Build the project with ` cmake ` .
16
16
* You can build a ` deb ` package using the target ` package ` in CMake.
17
17
18
- ## Setup
18
+ ## Server Setup
19
19
20
20
* Install ` gchsd ` from the ` deb ` package.
21
- * Configure a cache directory in ` /etc/gchsd.conf ` .
21
+ * Configure a cache directory (default is ` /tmp/gchsd ` ) and listen port (default is ` 80 ` ) in ` /etc/gchsd.conf ` .
22
22
* Start the ` gchsd ` daemon with ` sudo systemctl start gchsd ` .
23
- * You can use ` sudo systemctl enable gchsd ` to start the daemon automatically after a system restart.
23
+ * You can use ` sudo systemctl enable gchsd ` to start the daemon automatically after a system restart.
24
+
25
+ ## Client Setup
26
+
27
+ * Run ` git config --global url."http://<mirror_server_addr>/".insteadOf https:// ` to use the mirror instead of the original source.
Original file line number Diff line number Diff line change 3
3
# The default is:
4
4
#listenAddr 0.0.0.0:80
5
5
6
- # The directory in which cached Git repositories are stored
6
+ # The directory in which cached Git repositories are stored.
7
+ # The default is:
7
8
#cacheDir /tmp/gchsd
You can’t perform that action at this time.
0 commit comments