Added the doc for generating secret keys.

This commit is contained in:
Tom
2026-02-09 13:26:28 +01:00
parent 56d6401155
commit fe2672d55b

View File

@@ -54,6 +54,19 @@ Remaining variables must be declared in the inventory.
- =Reload_systemd=: It runs a =daemon-reload= - =Reload_systemd=: It runs a =daemon-reload=
- =Restart_gitea=: It restarts the Gitea service - =Restart_gitea=: It restarts the Gitea service
* Secrets
Always store the production secrets in SOPS, or in Vault.
Generate the secrets manually when the playbook stops:
#+begin_src shell
gitea generate secret INTERNAL_TOKEN
gitea generate secret JWT_SECRET
#+end_src
Use the =JWT_SECRET= command to generate the =gitea_lfs_jwt_secret= as well. It's an alias.
* Example Playbook * Example Playbook
#+begin_src yaml #+begin_src yaml