4.2. 配置
在
app-config.yaml
文件中将代理设置为所需的 Nexus Repository Manager 服务器,如下所示:proxy: '/nexus-repository-manager': target: 'https://<NEXUS_REPOSITORY_MANAGER_URL>' headers: X-Requested-With: 'XMLHttpRequest' # Uncomment the following line to access a private Nexus Repository Manager using a token # Authorization: 'Bearer <YOUR TOKEN>' changeOrigin: true # Change to "false" in case of using self hosted Nexus Repository Manager instance with a self-signed certificate secure: true
可选:更改 Nexus 存储库管理器代理的基本 URL,如下所示:
nexusRepositoryManager: # default path is `/nexus-repository-manager` proxyPath: /custom-path
可选:启用以下实验性注解:
nexusRepositoryManager: experimentalAnnotations: true
使用以下注解注解您的实体:
metadata: annotations: # insert the chosen annotations here # example nexus-repository-manager/docker.image-name: `<ORGANIZATION>/<REPOSITORY>`,