Skip to content

Commit 9f5ebd8

Browse files
committed
Fix inconsistent indentation
1 parent 871e5f1 commit 9f5ebd8

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

Diff for: docs/content/doc/installation/with-docker-rootless.en-us.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,13 @@ These environment variables can be passed to the docker container in `docker-com
293293
services:
294294
server:
295295
environment:
296-
- GITEA__mailer__ENABLED=true
297-
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
298-
- GITEA__mailer__MAILER_TYPE=smtp
299-
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
300-
- GITEA__mailer__IS_TLS_ENABLED=true
301-
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
302-
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
296+
- GITEA__mailer__ENABLED=true
297+
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
298+
- GITEA__mailer__MAILER_TYPE=smtp
299+
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
300+
- GITEA__mailer__IS_TLS_ENABLED=true
301+
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
302+
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
303303
```
304304

305305
To set required TOKEN and SECRET values, consider using Gitea's built-in [generate utility functions](https://docs.gitea.io/en-us/command-line/#generate).

Diff for: docs/content/doc/installation/with-docker.en-us.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ These environment variables can be passed to the docker container in `docker-com
294294
services:
295295
server:
296296
environment:
297-
- GITEA__mailer__ENABLED=true
298-
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
299-
- GITEA__mailer__MAILER_TYPE=smtp
300-
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
301-
- GITEA__mailer__IS_TLS_ENABLED=true
302-
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
303-
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
297+
- GITEA__mailer__ENABLED=true
298+
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
299+
- GITEA__mailer__MAILER_TYPE=smtp
300+
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
301+
- GITEA__mailer__IS_TLS_ENABLED=true
302+
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
303+
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
304304
```
305305

306306
Gitea will generate new secrets/tokens for every new installation automatically and write them into the app.ini. If you want to set the secrets/tokens manually, you can use the following docker commands to use of Gitea's built-in [generate utility functions](https://docs.gitea.io/en-us/command-line/#generate). Do not lose/change your SECRET_KEY after the installation, otherwise the encrypted data can not be decrypted anymore.

Diff for: docs/content/doc/installation/with-docker.zh-cn.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,13 @@ docker-compose up -d
285285
services:
286286
server:
287287
environment:
288-
- GITEA__mailer__ENABLED=true
289-
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
290-
- GITEA__mailer__MAILER_TYPE=smtp
291-
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
292-
- GITEA__mailer__IS_TLS_ENABLED=true
293-
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
294-
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
288+
- GITEA__mailer__ENABLED=true
289+
- GITEA__mailer__FROM=${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}
290+
- GITEA__mailer__MAILER_TYPE=smtp
291+
- GITEA__mailer__HOST=${GITEA__mailer__HOST:?GITEA__mailer__HOST not set}
292+
- GITEA__mailer__IS_TLS_ENABLED=true
293+
- GITEA__mailer__USER=${GITEA__mailer__USER:-apikey}
294+
- GITEA__mailer__PASSWD="""${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"""
295295
```
296296

297297
Gitea 将为每次新安装自动生成新的 `SECRET_KEY` 并将它们写入 `app.ini`。 如果您想手动设置 `SECRET_KEY`,您可以使用以下 docker 命令来使用 Gitea 内置的[方法](https://docs.gitea.io/en-us/command-line/#generate)生成 `SECRET_KEY`。 安装后请妥善保管您的 `SECRET_KEY`,如若丢失则无法解密已加密的数据。

0 commit comments

Comments
 (0)