Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
workWithSessions: {
  enabled: true,
  credentials: "C:\myprojectmy-project\sessions-credentials"
}

The basic authentication credentials file is created by the "store_credentials.js" command-line utility.  You can find an example of how to use the "store_credentials.js" command line utility here.

Multiple Profound.js Servers

...

With this configuration, the servers must be able to reach each other on the network. If each server is configured with a full list of servers used by the application, then the combined Work with Profound.js Sessions interface (/sessions URL) can be accessed from any Profound.js server.

The servers can also be specified with http request options, as defined by the pjs.httpRequest() API. For example:

Code Block
languagejs
workWithSessions: {
  enabled: true,
  servers: [
    { url: "https://server1", https: { rejectUnauthorized: false } },
    { url: "https://server2", https: { rejectUnauthorized: false } }
  }}

Dynamic Servers

If the list of servers is dynamic, the servers property can be specified as a JavaScript function that returns an array of servers dynamically.

...