Rename LFS_JWT_SECRET to include OAUTH2 as well (#6826)

tokarchuk/v1.17
techknowlogick 6 years ago committed by GitHub
parent e255df83a6
commit 897927690f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      cmd/generate.go
  2. 4
      docs/content/doc/usage/command-line.en-us.md

@ -40,9 +40,10 @@ var (
} }
microcmdGenerateLfsJwtSecret = cli.Command{ microcmdGenerateLfsJwtSecret = cli.Command{
Name: "LFS_JWT_SECRET", Name: "JWT_SECRET",
Usage: "Generate a new LFS_JWT_SECRET", Aliases: []string{"LFS_JWT_SECRET"},
Action: runGenerateLfsJwtSecret, Usage: "Generate a new JWT_SECRET",
Action: runGenerateLfsJwtSecret,
} }
microcmdGenerateSecretKey = cli.Command{ microcmdGenerateSecretKey = cli.Command{

@ -161,11 +161,11 @@ for automatic deployments.
- `secret`: - `secret`:
- Options: - Options:
- `INTERNAL_TOKEN`: Token used for an internal API call authentication. - `INTERNAL_TOKEN`: Token used for an internal API call authentication.
- `LFS_JWT_SECRET`: LFS authentication secret. - `JWT_SECRET`: LFS & OAUTH2 JWT authentication secret (LFS_JWT_SECRET is aliased to this option for backwards compatibility).
- `SECRET_KEY`: Global secret key. - `SECRET_KEY`: Global secret key.
- Examples: - Examples:
- `gitea generate secret INTERNAL_TOKEN` - `gitea generate secret INTERNAL_TOKEN`
- `gitea generate secret LFS_JWT_SECRET` - `gitea generate secret JWT_SECRET`
- `gitea generate secret SECRET_KEY` - `gitea generate secret SECRET_KEY`
#### keys #### keys

Loading…
Cancel
Save