Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • feature/osx-applesilicon
  • 1.6.5_fixed
  • bugfix/osx-bugfixes
  • bugfix/build-ionic
  • feature/no-member-login-browser
  • feature/macos-support
  • feature/ios-support
  • issue_4
  • issue_780
  • gitlab_migration_1
  • dev
  • rml8
  • v1.6.1
  • v1.6.0
  • v1.5.12
  • v1.5.11
  • v1.5.10
  • v1.5.9
  • v1.5.8
  • v1.5.7
  • v1.5.6
  • v1.5.5
  • v1.5.4
  • v1.5.3
  • v1.5.2
  • v1.5.1
  • v1.4.20
  • v1.4.19
  • v1.4.18
  • v1.4.17
  • v1.4.16
  • v1.4.15
33 results

configuration.md

Blame
  • Forked from clients / Cesium-grp / Cesium
    Loading
    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": "..."
        });

    Core options