README: update environment-to-ini usage example
This commit is contained in:
parent
3d99190a03
commit
6374091c31
1 changed files with 5 additions and 7 deletions
12
README.md
12
README.md
|
@ -195,19 +195,17 @@ stringData:
|
||||||
Users are able to define their own environment variables, which are loaded into the containers.
|
Users are able to define their own environment variables, which are loaded into the containers.
|
||||||
We also support to directly interact with the generated _app.ini_.
|
We also support to directly interact with the generated _app.ini_.
|
||||||
|
|
||||||
To inject self defined variables into the _app.ini_ a certain format needs to be honored.
|
To inject self defined variables into the _app.ini_, environment variables need
|
||||||
This is described in detail on the [env-to-ini](https://github.com/go-gitea/gitea/tree/main/contrib/environment-to-ini) page.
|
to be prefixed with `FORGEJO`.
|
||||||
|
|
||||||
Note that the Prefix on this helm chart is `ENV_TO_INI`.
|
|
||||||
|
|
||||||
For example a database setting needs to have the following format:
|
For example a database setting needs to have the following format:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
gitea:
|
gitea:
|
||||||
additionalConfigFromEnvs:
|
additionalConfigFromEnvs:
|
||||||
- name: ENV_TO_INI__DATABASE__HOST
|
- name: FORGEJO__DATABASE__HOST
|
||||||
value: my.own.host
|
value: my.own.host
|
||||||
- name: ENV_TO_INI__DATABASE__PASSWD
|
- name: FORGEJO__DATABASE__PASSWD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
|
@ -216,7 +214,7 @@ gitea:
|
||||||
|
|
||||||
Priority (highest to lowest) for defining app.ini variables:
|
Priority (highest to lowest) for defining app.ini variables:
|
||||||
|
|
||||||
1. Environment variables prefixed with `ENV_TO_INI`
|
1. Environment variables prefixed with `FORGEJO`
|
||||||
1. Additional config sources
|
1. Additional config sources
|
||||||
1. Values defined in `gitea.config`
|
1. Values defined in `gitea.config`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue