From dbe151686a561f8026818bcb17bab4a3bcf55c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauris=20Buk=C5=A1is-Haberkorns?= Date: Sun, 18 Feb 2018 20:57:11 +0200 Subject: [PATCH 1/2] Document generate commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lauris Bukšis-Haberkorns --- docs/content/doc/usage/command-line.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.md index 63f4a2a9073d5..24844af037000 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 internal API call authentication. + - `LFS_JWT_SECRET`: LFS authentication secret + - `SECRET_KEY`: Global secret key. + - Examples: + - `gitea secret INTERNAL_TOKEN` + - `gitea secret LFS_JWT_SECRET` + - `gitea secret SECRET_KEY` From ef8152323c1c637cf8c59d442021ba9ad4d733b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauris=20Buk=C5=A1is-Haberkorns?= Date: Sun, 18 Feb 2018 22:04:15 +0200 Subject: [PATCH 2/2] Fix examples and grammar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lauris Bukšis-Haberkorns --- docs/content/doc/usage/command-line.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/content/doc/usage/command-line.md b/docs/content/doc/usage/command-line.md index 24844af037000..cf6feeaf5e708 100644 --- a/docs/content/doc/usage/command-line.md +++ b/docs/content/doc/usage/command-line.md @@ -104,10 +104,10 @@ for automatic deployments. - Commands: - `secret`: - Options: - - `INTERNAL_TOKEN`: Token used for internal API call authentication. - - `LFS_JWT_SECRET`: LFS authentication secret + - `INTERNAL_TOKEN`: Token used for an internal API call authentication. + - `LFS_JWT_SECRET`: LFS authentication secret. - `SECRET_KEY`: Global secret key. - Examples: - - `gitea secret INTERNAL_TOKEN` - - `gitea secret LFS_JWT_SECRET` - - `gitea secret SECRET_KEY` + - `gitea generate secret INTERNAL_TOKEN` + - `gitea generate secret LFS_JWT_SECRET` + - `gitea generate secret SECRET_KEY`