mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
68 lines
2.1 KiB
JavaScript
68 lines
2.1 KiB
JavaScript
module.exports = {
|
|
"public": {
|
|
// Public URL of the instance (used for Content-Security-Policy)
|
|
origin: "http://localhost:3000",
|
|
// Sandbox URL of the instance
|
|
sandboxOrigin: "http://localhost:3001",
|
|
// Address and port of the nodejs HTTP server
|
|
httpHost: "localhost",
|
|
httpPort: 3000,
|
|
httpSafePort: 3001,
|
|
// (Optional) API server URL if hosted on a different domain (ws and http)
|
|
externalWebsocketURL: undefined,
|
|
fileHost: undefined,
|
|
// (Optional) httpServerId only useful for multi-server cases
|
|
httpServerId: '',
|
|
},
|
|
// Configure the topology here. Add or remove nodes on each level
|
|
// depending on your instance usage.
|
|
// "host" and "port" correspond to the nodejs HTTP server of each node
|
|
// "url" can be set if your nodes are on different machines. They must
|
|
// be able to reach each other from this URL
|
|
// "serverId" is optional and is only useful for multi-server cases
|
|
"front": [
|
|
{
|
|
url: "", // e.g. "https://node1.my-cryptpad-domain.net"
|
|
host: "localhost",
|
|
port: 3010, // Public http and websocket port
|
|
serverId: ''
|
|
},
|
|
{
|
|
url: "", // "https://node2.my-cryptpad-domain.net"
|
|
host: "localhost",
|
|
port: 3011,
|
|
serverId: ''
|
|
}
|
|
],
|
|
"core": [
|
|
{
|
|
url: "",
|
|
host: "localhost",
|
|
port: 3020, // Internal websocket between all nodes
|
|
serverId: ''
|
|
},
|
|
{
|
|
url: "",
|
|
host: "localhost",
|
|
port: 3021,
|
|
serverId: ''
|
|
}
|
|
],
|
|
"storage": [
|
|
{
|
|
url: "",
|
|
host: "localhost",
|
|
port: 3030, // Public port to serve "blob", "block", etc.
|
|
wsPort: 3040, // Internal websocket between storage nodes
|
|
serverId: ''
|
|
},
|
|
{
|
|
url: "",
|
|
host: "localhost",
|
|
port: 3031,
|
|
wsPort: 3041,
|
|
serverId: ''
|
|
}
|
|
]
|
|
};
|