mirror of
https://github.com/distribution/distribution.git
synced 2025-08-09 10:47:30 +00:00
docs: Explain how to configure a list through env variables (#4522)
This commit is contained in:
commit
f2658eeb0b
@ -35,6 +35,23 @@ REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/somewhere
|
|||||||
This variable overrides the `/var/lib/registry` value to the `/somewhere`
|
This variable overrides the `/var/lib/registry` value to the `/somewhere`
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
|
In order to override elements of a list, provide the index of the element
|
||||||
|
you wish to change as part of the path to that element. For example, to
|
||||||
|
configure the `hosts` list under `letsencrypt`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
http:
|
||||||
|
tls:
|
||||||
|
letsencrypt:
|
||||||
|
hosts: [myregistryaddress.org]
|
||||||
|
```
|
||||||
|
|
||||||
|
The corresponding environment variable would be:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
REGISTRY_HTTP_TLS_LETSENCRYPT_HOSTS_0=registry.example.com
|
||||||
|
```
|
||||||
|
|
||||||
> **Note**: Create a base configuration file with environment variables that can
|
> **Note**: Create a base configuration file with environment variables that can
|
||||||
> be configured to tweak individual values. Overriding configuration sections
|
> be configured to tweak individual values. Overriding configuration sections
|
||||||
> with environment variables is not recommended.
|
> with environment variables is not recommended.
|
||||||
|
Loading…
Reference in New Issue
Block a user