From 20c924ddb663e39a9a335d98c974757e9a0f4a4d Mon Sep 17 00:00:00 2001 From: SiriosDev <203106+siriosdev@noreply.gitea.com> Date: Thu, 9 Jul 2026 23:51:10 +0000 Subject: [PATCH] docs: add note on environment variable formatting in case of special characters (#425) Added information to explain to the user what to do when sections contain special characters such as `.` and `-` --------- Co-authored-by: Lunny Xiao Co-authored-by: SiriosDev <26876994+SiriosDev@users.noreply.github.com> Reviewed-on: https://gitea.com/gitea/docs/pulls/425 Reviewed-by: Lunny Xiao Co-authored-by: SiriosDev <203106+siriosdev@noreply.gitea.com> --- docs/administration/config-cheat-sheet.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/administration/config-cheat-sheet.md b/docs/administration/config-cheat-sheet.md index 23b81cfd..e639b626 100644 --- a/docs/administration/config-cheat-sheet.md +++ b/docs/administration/config-cheat-sheet.md @@ -36,6 +36,11 @@ A full restart is required for Gitea configuration changes to take effect. Gitea supports setting `app.ini` values via environment variables of the form `GITEA__
__`. These require running `gitea config edit-ini --in-place --apply-env` before starting Gitea to write them into `app.ini`. The official Docker images do this automatically on container startup. +:::info +If `
` or `` contains a `.`, replace that with `_0X2E_`; if it contains a `-`, replace it with `_0X2C_` +::: + + For example, to configure the database connection via environment variables: ```