@@ -0,0 +1,32 @@
|
||||
// CryptPad infrastructure configuration (cryptpad-server, since 2026.10.0)
|
||||
// Based on config.local/infra.example.js from the image.
|
||||
//
|
||||
// Provided as a Docker config because /cryptpad/config is root-owned in the
|
||||
// image: docker-entrypoint.sh cannot create this file itself.
|
||||
// Note: lib/load-config.js additionally overrides origin/sandboxOrigin and
|
||||
// binds all nodes to 0.0.0.0 when CPAD_MAIN_DOMAIN is set.
|
||||
|
||||
module.exports = {
|
||||
"public": {
|
||||
origin: "{{ env "CPAD_MAIN_DOMAIN" }}",
|
||||
sandboxOrigin: "{{ env "CPAD_SANDBOX_DOMAIN" }}",
|
||||
httpHost: "0.0.0.0",
|
||||
httpPort: 3000,
|
||||
httpSafePort: 3001,
|
||||
externalWebsocketURL: undefined,
|
||||
fileHost: undefined,
|
||||
httpServerId: "",
|
||||
},
|
||||
"front": [
|
||||
{ host: "0.0.0.0", port: 3010 },
|
||||
{ host: "0.0.0.0", port: 3011 },
|
||||
],
|
||||
"core": [
|
||||
{ host: "0.0.0.0", port: 3020 },
|
||||
{ host: "0.0.0.0", port: 3021 },
|
||||
],
|
||||
"storage": [
|
||||
{ host: "0.0.0.0", port: 3030, wsPort: 3040 },
|
||||
{ host: "0.0.0.0", port: 3031, wsPort: 3041 },
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user