Select Git revision
configuration.md
Forked from
clients / Cesium-grp / Cesium
-
Benoit Lavenier authored
[fix] Fix some old URL, in the about popup
Benoit Lavenier authored[fix] Fix some old URL, in the about popup
configuration.md 8.19 KiB
Configuration
On a web server or local installation, Cesium use a configuration to set default settings, like default peer, timeout, ...
Deployment configuration
When deploying Cesium (on web server or locally for a standalone use), you need to change this default configuration :
- Edit the file
config.js
:
angular.module("cesium.config", [])
.constant("csConfig", {
"cacheTimeMs": 60000,
"fallbackLanguage": "en",
"rememberMe": false,
"showUDHistory": false,
"timeout": 10000,
"timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000,
"useLocalStorage": true,
"useRelative": false,
"expertMode": false,
"decimalCount": 2,
"httpsMode": false,
"shareBaseUrl": "https://g1.duniter.fr",
"helptip": {
"enable": true,
"installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md"
},
"node": {
"host": "g1-test.duniter.org",
"port": 10900
},
"fallbackNodes": [
{
"host": "g1-test.cgeek.fr",
"port": 443
}
],
"plugins": {
"es": {
"enable": "true",
"host": "g1-test.data.duniter.fr",
"port": 443
}
},
"version": "...",
"build": "...",
"newIssueUrl": "https://git.duniter.org/clients/cesium/cesium/issues/new",
"userForumUrl": "https://forum.duniter.org"
});
Minimal configuration file
Because of default options values (see details below), the minimal configuration file should be:
-
without any extension:
angular.module("cesium.config", []) .constant("csConfig", { "node": { "host": "g1-test.duniter.org", "port": "10900" }, "version": "...", "build": "..." });
-
with ES (Cesium+) extension:
angular.module("cesium.config", []) .constant("csConfig", { "node": { "host": "g1-test.duniter.org", "port": 10900 }, "plugins": { "es": { "host": "g1-test.data.duniter.fr", "port": 443 } }, "version": "...", "build": "..." });