-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Corefile for production and local dev (#10)
* docs: document production Corefile it was missing acme section, and docs were also lacking context * docs: Corefile.local-dev documenting how to get started locally, saving an hour figuring it out
- Loading branch information
Showing
5 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
Corefile | ||
Corefile.local-dev | ||
zones | ||
p2p-forge | ||
p2p-forge-certs/ | ||
badger.libp2p-direct-challenges/ | ||
registration_libp2p_direct-certs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ cmd/cmd | |
p2p-forge | ||
p2p-forge-certs/ | ||
badger.libp2p-direct-challenges/ | ||
registration_libp2p_direct-certs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
# this file demonstrates reference production settings. | ||
# for local development use: ./p2p-forge -conf Corefile.local-dev | ||
libp2p.direct { | ||
log | ||
errors | ||
any # RFC 8482 | ||
prometheus localhost:9253 | ||
ipparser libp2p.direct | ||
file zones/libp2p.direct | ||
acme libp2p.direct { | ||
# HTTP API at /v1/_acme-challenge | ||
# production settings: TLS is terminated elsewhere: | ||
registration-domain registration.libp2p.direct listen-address=:80 external-tls=true | ||
# to handle tls termination as well, use: listen-address=:443 external-tls=false | ||
# | ||
# DNS-01 challenge cache | ||
# production settings: DynamoDB shared across all instances | ||
database-type dynamo libp2p-direct-challenges | ||
# for local dev with badger: database-type badger badger.libp2p-direct-challenges | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# for local development on ports 5354 (dns) and 5380 (http) | ||
# run with: ./p2p-forge -conf Corefile.local-dev -dns.port 5354 | ||
libp2p.direct { | ||
log | ||
errors | ||
any # RFC 8482 | ||
prometheus localhost:9253 | ||
ipparser libp2p.direct | ||
file zones/libp2p.direct | ||
acme libp2p.direct { | ||
registration-domain registration.libp2p.direct listen-address=:5380 external-tls=true | ||
database-type badger badger.libp2p-direct-challenges | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters