diff options
author | Lauris BH <lauris@nix.lv> | 2018-02-19 05:23:41 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-02-18 21:23:41 -0600 |
commit | 6f751409b4f996af83e88064877271efa90534f9 (patch) | |
tree | e37c7c0e68e489b60ee53e9b6d841a7a07945d0d /docs | |
parent | 58893384e848b54687c21d6d2ca38b70b3036ae2 (diff) | |
download | gitea-6f751409b4f996af83e88064877271efa90534f9.tar.gz gitea-6f751409b4f996af83e88064877271efa90534f9.zip |
Document generate commands (#3532)
* Document generate commands
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Fix examples and grammar
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/usage/command-line.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.md index 63f4a2a907..cf6feeaf5e 100644 --- a/docs/content/doc/usage/command-line.md +++ b/docs/content/doc/usage/command-line.md @@ -95,3 +95,19 @@ in the current directory. - Examples: - `gitea dump` - `gitea dump --verbose` + +#### generate + +Generates random values and tokens for usage in configuration file. Useful for generating values +for automatic deployments. + +- Commands: + - `secret`: + - Options: + - `INTERNAL_TOKEN`: Token used for an internal API call authentication. + - `LFS_JWT_SECRET`: LFS authentication secret. + - `SECRET_KEY`: Global secret key. + - Examples: + - `gitea generate secret INTERNAL_TOKEN` + - `gitea generate secret LFS_JWT_SECRET` + - `gitea generate secret SECRET_KEY` |