-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathserver-config.xml
136 lines (131 loc) · 7.68 KB
/
server-config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<project name="server config" basedir="." default="server-config">
<description>Creates the server configuration file.</description>
<!-- Properties for server.config -->
<property name="wave_server_domain" value="local.net" />
<property name="http_frontend_public_address" value="localhost:9898" />
<property name="http_frontend_addresses" value="${http_frontend_public_address}" />
<property name="resource_bases" value="./war" />
<property name="signer_info_store_type" value="file" />
<property name="attachment_store_type" value="disk" />
<property name="account_store_type" value="file" />
<property name="delta_store_type" value="file" />
<property name="signer_info_store_directory" value="_certificates" />
<property name="attachment_store_directory" value="_attachments" />
<property name="account_store_directory" value="_accounts" />
<property name="delta_store_directory" value="_deltas" />
<property name="sessions_store_directory" value="_sessions" />
<property name="admin_user" value="@${wave_server_domain}" />
<property name="welcome_wave_id" value="" />
<property name="listener_executor_thread_count" value="1" />
<property name="wavelet_load_executor_thread_count" value="1" />
<property name="delta_persist_executor_thread_count" value="1" />
<property name="storage_continuation_executor_thread_count" value="1" />
<property name="lookup_executor_thread_count" value="1" />
<property name="disable_registration" value="false" />
<property name="enable_import" value="false" />
<property name="enable_ssl" value="false" />
<property name="ssl_keystore_path" value="wiab.ks" />
<property name="ssl_keystore_password" value="changeme" />
<property name="search_type" value="lucene" />
<property name="index_directory" value="_indexes" />
<property name="analytics_account" value="" />
<!-- Properties for server.federation.config -->
<property name="xmpp_server_secret" value="opensesame" />
<property name="certificate_private_key" value="${wave_server_domain}.key" />
<property name="certificate_files" value="${wave_server_domain}.crt,sub.class1.server.ca.pem,ca.pem" />
<property name="certificate_domain" value="${wave_server_domain}" />
<property name="xmpp_component_name" value="wave" />
<property name="xmpp_jid" value="${xmpp_component_name}.${wave_server_domain}" />
<property name="xmpp_server_description" value=""Wave in a Box"" />
<property name="xmpp_server_hostname" value="${wave_server_domain}" />
<property name="xmpp_server_port" value="5275" />
<property name="xmpp_server_ping" value="wavesandbox.com" />
<property name="xmpp_server_ip" value="${xmpp_server_hostname}" />
<property name="waveserver_disable_verification" value="false" />
<property name="waveserver_disable_signer_verification" value="false" />
<target name="create-folders">
<mkdir dir="${signer_info_store_directory}" />
<mkdir dir="${attachment_store_directory}" />
<mkdir dir="${account_store_directory}" />
<mkdir dir="${delta_store_directory}" />
<mkdir dir="${sessions_store_directory}" />
</target>
<target name="server-config" depends="create-folders"
description="Run to create the server configuration file.
You can pass custom values, for example:
ant -f server-config.xml -Dwave_server_domain=example.com">
<echo>Generating server.config</echo>
<copy file="server.config"
tofile="server.config.old"
overwrite="true"
failonerror="false" />
<copy file="server.config.example" tofile="server.config" overwrite="true">
<filterchain>
<replacetokens>
<token key="WAVE_SERVER_DOMAIN" value="${wave_server_domain}" />
<token key="HTTP_FRONTEND_PUBLIC_ADDRESS"
value="${http_frontend_public_address}" />
<token key="HTTP_FRONTEND_ADDRESSES"
value="${http_frontend_addresses}" />
<token key="RESOURCE_BASES" value="${resource_bases}" />
<token key="SIGNER_INFO_STORE_TYPE" value="${signer_info_store_type}" />
<token key="ATTACHMENT_STORE_TYPE" value="${attachment_store_type}" />
<token key="ACCOUNT_STORE_TYPE" value="${account_store_type}" />
<token key="DELTA_STORE_TYPE" value="${delta_store_type}" />
<token key="SIGNER_INFO_STORE_DIRECTORY"
value="${signer_info_store_directory}" />
<token key="ATTACHMENT_STORE_DIRECTORY"
value="${attachment_store_directory}" />
<token key="ACCOUNT_STORE_DIRECTORY"
value="${account_store_directory}" />
<token key="DELTA_STORE_DIRECTORY" value="${delta_store_directory}" />
<token key="SESSIONS_STORE_DIRECTORY" value="${sessions_store_directory}" />
<token key="ADMIN_USER" value="${admin_user}" />
<token key="WELCOME_WAVE_ID" value="${welcome_wave_id}" />
<token key="LISTENER_EXECUTOR_THREAD_COUNT" value="${listener_executor_thread_count}" />
<token key="WAVELET_LOAD_EXECUTOR_THREAD_COUNT" value="${wavelet_load_executor_thread_count}" />
<token key="DELTA_PERSIST_EXECUTOR_THREAD_COUNT" value="${delta_persist_executor_thread_count}" />
<token key="STORAGE_CONTINUATION_EXECUTOR_THREAD_COUNT" value="${storage_continuation_executor_thread_count}" />
<token key="LOOKUP_EXECUTOR_THREAD_COUNT" value="${lookup_executor_thread_count}" />
<token key="DISABLE_REGISTRATION" value="${disable_registration}" />
<token key="ENABLE_IMPORT" value="${enable_import}" />
<token key="ENABLE_SSL" value="${enable_ssl}" />
<token key="SSL_KEYSTORE_PATH" value="${ssl_keystore_path}" />
<token key="SSL_KEYSTORE_PASSWORD" value="${ssl_keystore_password}" />
<token key="SEARCH_TYPE" value="${search_type}" />
<token key="INDEX_DIRECTORY" value="${index_directory}" />
<token key="ANALYTICS_ACCOUNT" value="${analytics_account}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="server-federation-config" depends="server-config"
description="Run to create both the server and federation configuration files.
ant -f server-config.xml server-federation-config -Dserver_federation_config=server.federation.config">
<echo>Generating federation.server.config</echo>
<copy file="server.federation.config"
tofile="server.federation.config.old"
overwrite="true"
failonerror="false" />
<copy file="server.federation.config.example" tofile="server.federation.config" overwrite="true">
<filterchain>
<replacetokens>
<token key="XMPP_SERVER_SECRET" value="${xmpp_server_secret}" />
<token key="CERTIFICATE_PRIVATE_KEY" value="${certificate_private_key}" />
<token key="CERTIFICATE_FILES" value="${certificate_files}" />
<token key="CERTIFICATE_DOMAIN" value="${certificate_domain}" />
<token key="XMPP_COMPONENT_NAME" value="${xmpp_component_name}" />
<token key="XMPP_JID" value="${xmpp_jid}" />
<token key="XMPP_SERVER_DESCRIPTION" value="${xmpp_server_description}" />
<token key="XMPP_SERVER_HOSTNAME" value="${xmpp_server_hostname}" />
<token key="XMPP_SERVER_PORT" value="${xmpp_server_port}" />
<token key="XMPP_SERVER_PING" value="${xmpp_server_ping}" />
<token key="XMPP_SERVER_IP" value="${xmpp_server_ip}" />
<token key="WAVESERVER_DISABLE_VERIFICATION" value="${waveserver_disable_verification}" />
<token key="WAVESERVER_DISABLE_SIGNER_VERIFICATION"
value="${waveserver_disable_signer_verification}" />
</replacetokens>
</filterchain>
</copy>
</target>
</project>