pubsweet-component-ink-backend
v0.2.19
Published
Backend INK component for PubSweet
Downloads
9
Readme
Configuration
In order to use this component, the following configuration needs to be added to a PubSweet application inside a section named pubsweet-component-ink-backend
:
inkEndpoint
: the URL of an INK instanceemail
andpassword
: the email address and password used to authenticate with INKpusher
: a set of configuration values matching those used in the INK instance:appKey
: theSLANGER_APP_ID
value from INK's.env
filewsHost
andhttpHost
: the hostname of the INK instance (as used forinkEndpoint
, but not a full URL)wsPort
andhttpPort
: the ports that Slanger is running on in the INK instance, as configured in theslanger
section of INK'sdocker-compose.yml
.
recipes
: recipe keys (as used in theInkFrontend
component) that map to recipe IDs in the INK instance.
For example:
{
"pubsweet-component-ink-backend": {
"inkEndpoint": "https://ink.example.com/",
"email": "[email protected]",
"password": "abcdef",
"pusher": {
"appKey": "abc123",
"wsHost": "ink.example.com",
"wsPort": 8080,
"httpHost": "ink.example.com",
"httpPort": 4567
},
"recipes": {
"foo": "1",
"bar": "2"
}
}
}