Skip to content

Commit d896b1d

Browse files
committed
Sync documentation of main branch
1 parent c36f57d commit d896b1d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

_versions/main/guides/extension-registry-user.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,26 @@ image:registry-nexus-repository.png[Nexus Repository Proxy]
214214
- Set the `Remote Storage` URL to `https://registry.quarkus.io/maven`
215215

216216
image:registry-nexus3-repository.png[Nexus Repository Proxy]
217+
218+
==== Environment Variables
219+
220+
Applications using a registry client can be configured using environment variables.
221+
222+
`QUARKUS_REGISTRIES` environment variable can be used to specify which registries should be enabled as a comma-separated list of registry IDs.
223+
For example
224+
```
225+
QUARKUS_REGISTRIES=registry.acme.org,registry.quarkus.io
226+
```
227+
That alone will be enough to initialize a registry client to pull extension catalogs from two registries using their default configurations.
228+
229+
Certain registry options could be initialized with their specific environment variables. Each such option will have the following environment variable prefix:
230+
```
231+
QUARKUS_REGISTRY_<UPPERCASED_AND_UNDERSCORED_REGISTRY_ID>_
232+
```
233+
where `<UPPERCASED_AND_UNDERSCORED_REGISTRY_ID>` is a registry ID with each character converted to uppercase and a `.` replaced with `_`. For example, `REGISTRY_ACME_ORG`.
234+
235+
The following options can be configured with this approach:
236+
237+
- Repository URL, for example `QUARKUS_REGISTRY_REGISTRY_ACME_ORG_REPO_URL=https://internal.registry.acme.org/maven`
238+
- Update policy, for example `QUARKUS_REGISTRY_REGISTRY_ACME_ORG_UPDATE_POLICY=always`
239+
- Offering, for example `QUARKUS_REGISTRY_REGISTRY_ACME_ORG_OFFERING=acme-magic`

0 commit comments

Comments
 (0)