Apply suggestions from code review

This commit is contained in:
zeripath 2022-11-04 21:48:01 +00:00 committed by GitHub
parent a43afc724a
commit 4afe2fbeee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ reported as part of the default configuration when running `gitea --help` or on
- The `--work-path` flag passed to the binary - The `--work-path` flag passed to the binary
- The environment variable `$GITEA_WORK_DIR` - The environment variable `$GITEA_WORK_DIR`
- A built-in value set at build time (see building from source) - A built-in value set at build time (see building from source)
- Otherwise default to the directory of the _`AppPath`_ - Otherwise it defaults to the directory of the _`AppPath`_
- If any of the above are relative paths then they are made absolute against the - If any of the above are relative paths then they are made absolute against the
the directory of the _`AppPath`_ the directory of the _`AppPath`_
- _`CustomPath`_: This is the base directory for custom templates and other options. - _`CustomPath`_: This is the base directory for custom templates and other options.
@ -53,13 +53,13 @@ It is determined by using the first set thing in the following hierarchy:
- The `--custom-path` flag passed to the binary - The `--custom-path` flag passed to the binary
- The environment variable `$GITEA_CUSTOM` - The environment variable `$GITEA_CUSTOM`
- A built-in value set at build time (see building from source) - A built-in value set at build time (see building from source)
- Otherwise default to _`AppWorkPath`_`/custom` - Otherwise it defaults to _`AppWorkPath`_`/custom`
- If any of the above are relative paths then they are made absolute against the - If any of the above are relative paths then they are made absolute against the
the directory of the _`AppWorkPath`_ the directory of the _`AppWorkPath`_
- _`CustomConf`_: This is the path to the `app.ini` file. - _`CustomConf`_: This is the path to the `app.ini` file.
- The `--config` flag passed to the binary - The `--config` flag passed to the binary
- A built-in value set at build time (see building from source) - A built-in value set at build time (see building from source)
- _`CustomPath`_`/conf/app.ini` - Otherwise it defaults to _`CustomPath`_`/conf/app.ini`
- If any of the above are relative paths then they are made absolute against the - If any of the above are relative paths then they are made absolute against the
the directory of the _`CustomPath`_ the directory of the _`CustomPath`_