diff --git a/README.md b/README.md index ebf0ffb2..7689488c 100644 --- a/README.md +++ b/README.md @@ -645,6 +645,9 @@ Configuring blobstore on S3 is provided as a convenience and is not part of the # # maximum_metadata_age: 1440 # # negative_cache_enabled: true # # negative_cache_ttl: 1440 + # To set HTTP request settings: + # # enable_circular_redirects: true + # # enable_cookies: true ``` Maven [proxy repositories](https://help.sonatype.com/display/NXRM3/Repository+Management#RepositoryManagement-ProxyRepository) configuration. diff --git a/files/groovy/create_repos_from_list.groovy b/files/groovy/create_repos_from_list.groovy index 279670a0..b4424658 100644 --- a/files/groovy/create_repos_from_list.groovy +++ b/files/groovy/create_repos_from_list.groovy @@ -111,7 +111,9 @@ parsed_args.each { currentRepo -> blocked : false, autoBlock : true, connection : [ - useTrustStore: false + useTrustStore: false, + enableCircularRedirects: currentRepo.get('enable_circular_redirects', false), + enableCookies: currentRepo.get('enable_cookies', false) ] ] diff --git a/molecule/nexus_common_test_vars.yml b/molecule/nexus_common_test_vars.yml index c8e5f3f5..2ccb90d9 100644 --- a/molecule/nexus_common_test_vars.yml +++ b/molecule/nexus_common_test_vars.yml @@ -90,6 +90,8 @@ nexus_repos_npm_proxy: - name: npm-registry remote_url: https://registry.npmjs.org/ negative_cache_enabled: false + enable_circular_redirects: true + enable_cookies: true nexus_repos_yum_hosted: - name: private_yum_centos_7 @@ -100,6 +102,8 @@ nexus_repos_yum_proxy: maximum_component_age: -1 maximum_metadata_age: -1 negative_cache_ttl: 60 + enable_circular_redirects: true + enable_cookies: true nexus_repos_yum_group: - name: yum_all member_repos: