You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ To run Sugarizer Server **without Docker**, follow the step behind. Commands are
53
53
sudo apt-get install mongodb
54
54
sudo mkdir -p /data/db
55
55
56
-
**Install Sugarizer Client and Server**: If need, you could update sugarizer-server/sugarizer.ini file (update port for web, mongodb or presence)
56
+
**Install Sugarizer Client and Server**: If need, you could update sugarizer-server/sugarizer.ini file (update port for web, mongodb or presence, see below)
57
57
58
58
sudo apt-get install git
59
59
cd /home/root
@@ -67,18 +67,22 @@ To run Sugarizer Server **without Docker**, follow the step behind. Commands are
*Warning:* If your server had an unclean shutdown on previous boot, MongoDB could not start correctly telling that some files are locked. In that case, launch first:
71
+
72
+
sudo mongod --repair
70
73
71
74
**Check your install**: To check your install, run "http://127.0.0.1:8080" in your browser:
72
75
73
-
* you should see the home with all activities,
74
-
*once a new user created, go to Journal view, you should see at the bottom of the screen the two icons to switch to private/shared journal,
76
+
*once a new user created, you should see the home with all activities,
77
+
* go to Journal view, you should see at the bottom of the screen the two icons to switch to private/shared journal,
75
78
* go to the neighborhood view, you should see one icon for the server and one for you.
76
79
77
80
78
81
## Server settings
79
82
80
-
If needed, Sugarizer Server settings could be changed using the [sugarizer.ini](env/sugarizer.ini) config file (you could use another name for this file: just pass the new name
81
-
as [sugarizer.js](sugarizer.js) parameter).
83
+
Sugarizer settings are load by default from file [env/sugarizer.ini](env/sugarizer.ini). You could change the name of this file by changing the value of environment variable ``NODE_ENV``. So if the ``NODE_ENV`` variable is set to ``production``, Sugarizer will try to load ``env/production.ini`` file.
84
+
85
+
Following is the typical content of Sugarizer Server settings file:
82
86
83
87
84
88
[information]
@@ -128,7 +132,7 @@ The **[web]** section describe the settings of the node.js process. By default,
128
132
129
133
The **[security]** section regroup security settings. `min_password_size` is the minimum number of characters for the password. `max_age` is the expiration time in milliseconds of a session with the client. At the expiration of the session, the client should reenter its password. Default time is 172800000 (48 hours). Parameters `https`, `certificate_file`, `key_file` and `strict_ssl` are explain above.
130
134
131
-
The **[client]** indicate the place where is located Sugarizer Client. Sugarizer Client is need by the server. WARNING: currently, only the **dev** branch of Sugarizer repository works with Sugarizer Server.
135
+
The **[client]** indicate the place where is located Sugarizer Client. Sugarizer Client is need by the server.
132
136
133
137
The **[presence]** section describe the settings of the presence server. By default, a web socket is created on port 8039. You need to change this value if you want to use another port.
0 commit comments