Skip to content

Conversation

@achingbrain
Copy link
Member

Adds an example showing how to configure auto-tls and includes discussion of some of the trade-offs and descisions you have to make.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain requested a review from 2color December 13, 2024 09:04
@achingbrain achingbrain force-pushed the docs/add-auto-tls-example branch from fcdbcb1 to c06104f Compare December 13, 2024 09:36
Adds an example showing how to configure auto-tls and includes
discussion of some of the trade-offs and descisions you have to
make.
@achingbrain achingbrain force-pushed the docs/add-auto-tls-example branch from c06104f to 230e8a5 Compare December 13, 2024 09:42
@achingbrain achingbrain merged commit 3e1eccd into main Dec 16, 2024
16 checks passed
@achingbrain achingbrain deleted the docs/add-auto-tls-example branch December 16, 2024 15:54
// other config
tcp()
],
services: {
Copy link

Choose a reason for hiding this comment

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

How did you decide which services to keep for each of these sections?

For example, shouldn't we also include identify here which is necessary for most of the other services to work?

Copy link
Member Author

@achingbrain achingbrain Dec 17, 2024

Choose a reason for hiding this comment

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

It was meant to be an additive thing, not replacing the existing config blocks.

It says // other config everywhere but I guess that's not obvious enough - do you think using a formatted diff instead of a js code block would be clearer?

Copy link

Choose a reason for hiding this comment

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

Yeah I think adding a diff block would be better, runnable code is included, so should be a problem

@2color
Copy link

2color commented Dec 17, 2024

Nice!

achingbrain added a commit that referenced this pull request Dec 20, 2024
Follow up to address issues raised in #194 (comment)

Use diff blocks to show code changes over time to make it easier to follow.
achingbrain added a commit that referenced this pull request Jan 6, 2025
Follow up to address issues raised in #194 (comment)

Use diff blocks to show code changes over time to make it easier to follow.
github-actions bot pushed a commit to libp2p/js-libp2p-example-auto-tls that referenced this pull request Jan 6, 2025
Follow up to address issues raised in libp2p/js-libp2p-examples#194 (comment)

Use diff blocks to show code changes over time to make it easier to follow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants