-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
43 additions
and
9 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
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,30 @@ | ||
package config | ||
|
||
import p2pforge "github.com/ipshipyard/p2p-forge/client" | ||
|
||
// ForgeClient includes optional configuration of p2p-forge client of service | ||
// for obtaining a domain and TLS certificate to improve connectivity for web | ||
// browser clients. More: https://github.com/ipshipyard/p2p-forge#readme | ||
type ForgeClient struct { | ||
// Enables the p2p-forge feature | ||
Enabled Flag `json:",omitempty"` | ||
|
||
// Optional override of the parent domain that will be used | ||
ForgeDomain *OptionalString `json:",omitempty"` | ||
|
||
// Optional override of HTTP API that acts as ACME DNS-01 Challenge broker | ||
ForgeEndpoint *OptionalString `json:",omitempty"` | ||
|
||
// Optional Authorization token, used with private/test instances of p2p-forge | ||
ForgeAuth *OptionalString `json:",omitempty"` | ||
|
||
// Optional override of CA ACME API used by p2p-forge system | ||
CAEndpoint *OptionalString `json:",omitempty"` | ||
} | ||
|
||
const ( | ||
DefaultForgeEnabled = false // experimental, opt-in for now (https://github.com/ipfs/kubo/pull/10521) | ||
DefaultForgeDomain = p2pforge.DefaultForgeDomain | ||
DefaultForgeEndpoint = p2pforge.DefaultForgeEndpoint | ||
DefaultCAEndpoint = p2pforge.DefaultCAEndpoint | ||
) |
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
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
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
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
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
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