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

fix: add InlineDNSLink flag to PublicGateways config #9328

Merged
merged 8 commits into from
Oct 11, 2022
Merged

fix: add InlineDNSLink flag to PublicGateways config #9328

merged 8 commits into from
Oct 11, 2022

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Oct 5, 2022

Fixes #9243.

@hacdias hacdias marked this pull request as ready for review October 5, 2022 11:53
@hacdias hacdias requested a review from lidel as a code owner October 5, 2022 11:53
@hacdias hacdias force-pushed the fix/9243 branch 2 times, most recently from f1ea600 to eed6de2 Compare October 7, 2022 07:50
@hacdias hacdias self-assigned this Oct 10, 2022
config/gateway.go Outdated Show resolved Hide resolved
docs/config.md Show resolved Hide resolved
@hacdias
Copy link
Member Author

hacdias commented Oct 11, 2022

@lidel per our conversation yesterday, I updated this PR to use Flag instead of bool.

additional explanations, as this is very low level and nuanced feature
since this is a Flag and not bool, we can have shorter name
@lidel lidel changed the title fix: add UseInlinedDNSLink flag to configuration fix: add InlineDNSLink flag to PublicGateways config Oct 11, 2022
@hacdias
Copy link
Member Author

hacdias commented Oct 11, 2022

@lidel the tests are now passing. It seems they were stuck in the Web UI, but I restarted them. Thanks for the docs updates and clarifications.

Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @hacdias, lgtm.

@cypt4 fyi this will ship in Kubo 0.17. Brave will be able to enable this in config via:

$ ipfs config --json Gateway.PublicGateways '{
  "localhost": {
    "UseSubdomains": true,
    "InlineDNSLink": true,
    "Paths": ["/ipfs", "/ipns", "/api"]
  }
}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Gateway: add UseInlinedDNSLink flag to config
2 participants