Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set enableCookies and enableCircularRedirects #384

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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