Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ new PluginHttp({
},
incoming: { // (required) describes the http server
port: 4000, // (required) port to listen on
secret: 'shhh' // (required) secret for auth (see Protocol section)
secret: 'shhh', // secret for JWT auth (see Protocol section)
secretToken: 'shhh' // (required) secret for auth (see Protocol section)
},
outgoing: { // (required) describes outgoing http calls
url: 'https://example.com/ilp/%', // (required) endpoint to POST packets to
// if url contains a percent and the plugin is in `multi` mode, then the
// segment after this plugin's own address will be filled where the `%` is
// when routing packets.

secret: 'othersecret', // (required) secret for auth (see Protocol section)
secret: 'othersecret', // secret for JWT auth (see Protocol section)
secretToken: 'othersecret', // (required) secret for auth (see Protocol section)
http2: false, // whether `url` uses http2
tokenExpiry: 10 * 1000, // how often to sign a new token for auth
name: 'alice' // name to send in `ILP-Peer-Name` header, for ilp addr.
Expand Down