Skip to content

Commit

Permalink
Set enableCookies and enableCircularRedirects (#384)
Browse files Browse the repository at this point in the history
* Set enableCookies and enableCircularRedirects
* Update README.md to include HTTP request settings
* Add test for circular redirects and cookies on selected repos

---------

Co-authored-by: Olivier Clavel <olivier.clavel@gmail.com>
  • Loading branch information
brianveltman and zeitounator committed Dec 13, 2023
1 parent a5cb752 commit 21a9d06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion files/groovy/create_repos_from_list.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
]
]

Expand Down
4 changes: 4 additions & 0 deletions molecule/nexus_common_test_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 21a9d06

Please sign in to comment.