· 7 years ago · Feb 26, 2018, 07:58 AM
1%%============================================================================
2%% Ring settings
3%%=============================================================================
4{ring_size, 512}.
5
6%% Script settings
7%%=============================================================================
8{role,
9 {lite_role,
10 [{size, 32},
11 {worker, [{cmd, "/opt/server/current/server lite_release /opt/references/references_server.dat"},
12 {env, []}]}]}}.
13
14{role,
15 {admin_role,
16 [{size, 1},
17 {worker, [{cmd, "/opt/server/current/server admin_release /opt/references/references_server.dat"},
18 {env, []}]}]}}.
19
20%%=============================================================================
21%% Storage settings
22%%=============================================================================
23
24{connection,
25 {main_connection,
26 [{options, []},
27 {hosts, [
28 {"riak-db-0.kefirgames.com", 8087},
29 {"riak-db-0.kefirgames.com", 8087}
30 ]}]}}.
31
32{connection_pool,
33 {main_pool,
34 [{connection, main_connection},
35 {size, 200}]}}.
36
37{connection,
38 {old_riak_connection,
39 [{options, []},
40 {hosts, [
41 {"riak-old-1.kefirgames.com", 8087},
42 {"riak-old-0.kefirgames.com", 8087}
43 ]}]}}.
44
45{connection_pool,
46 {old_riak_pool,
47 [{connection, old_riak_connection},
48 {size, 100}]}}.
49
50{dataset,
51 {migration,
52 [{adapter, riak},
53 {pool, old_riak_pool},
54 {mode, plain},
55 {bucket, "player_fog_ios"}]}}.
56
57{dataset,
58 {profile,
59 [{adapter, riak},
60 {pool, main_pool},
61 {mode, plain},
62 {bucket, "profile"}]}}.
63
64{dataset,
65 {google_bind,
66 [{adapter, riak},
67 {pool, main_pool},
68 {mode, plain},
69 {save, [if_none_match]},
70 {bucket, "google_bind"}]}}.
71
72{dataset,
73 {apple_bind,
74 [{adapter, riak},
75 {pool, main_pool},
76 {mode, plain},
77 {save, [if_none_match]},
78 {bucket, "apple_bind"}]}}.
79
80{dataset,
81 {apple_transaction,
82 [{adapter, riak},
83 {pool, main_pool},
84 {mode, plain},
85 {save, [if_none_match]},
86 {bucket, "apple_transaction"}]}}.
87
88{dataset,
89 {google_transaction,
90 [{adapter, riak},
91 {pool, main_pool},
92 {mode, plain},
93 {save, [if_none_match]},
94 {bucket, "google_transaction"}]}}.
95
96{sink,
97 {log,
98 [{adapter, lager}]}}.
99
100% {sink,
101% {analytics_log,
102% [{adapter, lager}]}}.
103
104% {sink,
105% {performance_log,
106% [{adapter, lager}]}}.
107
108{sink,
109 {error_log,
110 [{adapter, graylog},
111 {addr, "graylog.kefirgames.ru"},
112 {port, 12900}]}}.
113
114{sink,
115 {analytics_log,
116 [{adapter, fluentd},
117 {ip, "127.0.0.1"},
118 {port, 24224}]}}.
119
120{sink,
121 {performance_log,
122 [{adapter, fluentd},
123 {ip, "127.0.0.1"},
124 {port, 24225}]}}.
125
126{gh,
127 {main,
128 [{type, websocket},
129 {port, 8080},
130 {ip, "192.168.1.143"},
131 {authorization, main},
132 {role, lite_role}]}}.
133
134{gh,
135 {admin,
136 [{type, websocket},
137 {port, 8090},
138 {ip, "192.168.1.143"},
139 {authorization, admin},
140 {role, admin_role}]}}.
141
142{service,
143 {authorization_service,
144 [{provider, authorization},
145 {authorization, main}]}}.
146
147{service,
148 {migration_service,
149 [{provider, migration},
150 {dataset, migration}]}}.
151
152{service,
153 {google_service,
154 [{provider, google},
155 {client_id, "677513024059-tbc4lo7ofcrbgf4jchk911dlvrh3hv62.apps.googleusercontent.com"},
156 {package_name, "zombie.survival.craft.z"},
157 {public_key, "./certs/google_public_key.pem"},
158 {public_key_url, "https://www.googleapis.com/oauth2/v1/certs"}]}}.
159
160{service,
161 {apple_service,
162 [{provider, apple},
163 {bundle_id, "zombie.survival.craft.z"},
164 {cacert, "./certs/apple_root_certificate.cer"},
165 {public_key_url, "https://static.gc.apple.com/public-key/gc-prod-3.cer"}]}}.
166
167{authorization,
168 {main,
169 [{type, regular},
170 {salt, "xahp1kei9Uuneyaithafah8Fiequieth"}]}}.
171
172{authorization,
173 {admin,
174 [{type, admin},
175 {salt, "auC4thi6oorahghee7yeiquo1xo3bu4u"}]}}.
176
177{authorization,
178 {obsolete,
179 [{type, obsolete},
180 {app_id, "745975695414583"},
181 {secret_key, "ee3bc4492e5d89ac603dd92fed03841c"}]}}.