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: server/README.md
+1
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ This is a latest version of the Anyplace backend, which has been ported to tha s
64
64
65
65
## SSL and Cluster Configurations for Anyplace Server
66
66
+ Install a free certificate from https://letsencrypt.org/ on your Anyplace Server to obtain a secure https connection. SSL is only optional for web functionality. For Android, SSL is a prerequisite!
67
+
67
68
+ (Optional) Install a free load balancer from [HAProxy](http://www.haproxy.org/) to scale your installation to multiple Anplace servers. In case of Anyplace cluster configuration, please install the certificate on the load balancer.
"reduce": "function (keys, values, rereduce) {\n if(!rereduce) {\n var total = 0,\n count = 0;\n for (v in values) {\n total+= parseInt(values[v]);\n count++;\n }\n } else {\n var count = 0;\n total = 0;\n for (v in values) {\n total += values[v]['total'];\n count += values[v]['count'];\n } \n }\n var average = total / count;\n return {count: count,\n total: total,\n average: average};\n}"
"reduce": "function (keys, values, rereduce) {\n if(!rereduce) {\n var total = 0,\n count = 0;\n for (v in values) {\n total+= parseInt(values[v]);\n count++;\n }\n } else {\n var count = 0;\n total = 0;\n for (v in values) {\n total += values[v]['total'];\n count += values[v]['count'];\n } \n }\n var average = total / count;\n return {count: count,\n total: total,\n average: average};\n}"
"reduce": "function (keys, values, rereduce) {\n if(!rereduce) {\n var total = 0,\n count = 0;\n for (v in values) {\n total+= parseInt(values[v]);\n count++;\n }\n } else {\n var count = 0;\n total = 0;\n for (v in values) {\n total += values[v]['total'];\n count += values[v]['count'];\n } \n }\n var average = total / count;\n return {count: count,\n total: total,\n average: average};\n}"
"reduce": "function (keys, values, rereduce) {\n if(!rereduce) {\n var total = 0,\n count = 0;\n for (v in values) {\n total+= parseInt(values[v]);\n count++;\n }\n } else {\n var count = 0;\n total = 0;\n for (v in values) {\n total += values[v]['total'];\n count += values[v]['count'];\n } \n }\n var average = total / count;\n return {count: count,\n total: total,\n average: average};\n}"
"reduce": "function (keys, values, rereduce) {\n if(!rereduce) {\n var total = 0,\n count = 0;\n for (v in values) {\n total+= parseInt(values[v]);\n count++;\n }\n } else {\n var count = 0;\n total = 0;\n for (v in values) {\n total += values[v]['total'];\n count += values[v]['count'];\n } \n }\n var average = total / count;\n return {count: count,\n total: total,\n average: average};\n}"
0 commit comments