-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
413 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
- Getting started | ||
- [Quick start](quickstart.md) | ||
- [Install](install.md) | ||
- [Quick start](/en/quickstart.md) | ||
- [Install](/en/install.md) | ||
- Guide | ||
- [Configuration](configuration.md) | ||
- [API](api.md) | ||
- [Cli Tool](cli.md) | ||
- [Examples](examples.md) | ||
- [Migrate](migrate.md) | ||
- [Configuration](/en/configuration.md) | ||
- [API](/en/api.md) | ||
- [CLI](/en/cli.md) | ||
- [Examples](/en/examples.md) | ||
- [Migrations](/en/migrate.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Cli | ||
# CLI | ||
|
||
hpr is a command line tool, it also support some commands to manage mirror repositories temporary. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Configuration | ||
|
||
You can create a new hpr config file by copying the template that we have included for you: | ||
|
||
``` | ||
$ cp config/hpr.json.example.json config/hpr.json.json | ||
``` | ||
|
||
For now, hpr only read config from `config/hpr.json` file. | ||
|
||
## schedule_in | ||
|
||
Update cycle for each repository, the min unit is miniute. | ||
|
||
Unit | Type | Values | Samples | ||
---|---|---|--- | ||
Minute | String/Int32/Int64 | `interge value`/`minute`/`minutes` | 60<br />"1.minute"<br />"30.minutes" | ||
Houe | String | `hour`/`hours` | "1.hour"<br />"5.hours" | ||
Day | String | `day`/`days` | "1.day"<br />"10.days" | ||
Week | String | `week`/`weeks` | "1.week"<br />"2.weeks" | ||
Month | String | `month`/`months` | "1.month"<br />"6.months" | ||
Year | String | `year`/`years` | "1.year"<br />"2.years" | ||
|
||
## basic_auth | ||
|
||
You can enable basic auth for security. | ||
|
||
| Key | Type | Description | Note | | ||
|---|---|---|---| | ||
| enable | boolean | Enable Basic auth | `true`/`false` | | ||
| user | string | User | | | ||
| password | string | Password | Be complex | | ||
|
||
## gitlab | ||
|
||
Config of gitlab, main key were `endpoint`, `prite_token` and `group_name`。 | ||
|
||
| Key | Type | Description | Note | | ||
|---|---|---|---| | ||
| endpoint | boolean | Endpoint of gitlab | Support non-GraphQL API | | ||
| private_token | string | private token of gitlab | New version gitlab rename to Access Token | | ||
| ssh_port | integer | ssh port of gitlab | default is 22 | | ||
| group_name | string | name of group | Ask Admin to create group if you have not create group role<br />No support for personal namespace | | ||
| project_public | boolean | Is public | | | ||
| project_issue | boolean | Enable Issue | `true`/`false` | | ||
| project_wiki | boolean | Enable Wiki | `true`/`false` | | ||
| project_merge_request | boolean | Enable MR | `true`/`false` | | ||
| project_snippet | boolean | Enable Snippet | `true`/`false` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Examples | ||
|
||
- [Self-host Gitlab](https://github.com/icyleaf/hpr/tree/master/examples/selfhost) | ||
|
||
- [Use Gitlab.com](https://github.com/icyleaf/hpr/tree/master/examples/saas) |
Oops, something went wrong.