Services/Sync/Server/Archived/0.3/Setup: Difference between revisions

Jump to navigation Jump to search
replace constants with exact code to include in weave_constants.php
(→‎Setting up the Server: add info how to get latest server + change alias to reflect new server)
(replace constants with exact code to include in weave_constants.php)
Line 22: Line 22:
== Setting up Weave Authentication ==
== Setting up Weave Authentication ==


In weave_constants.php
In weave_constants.php at the beginning (e.g. directly after the license-block)


<pre>
<pre>
WEAVE_AUTH_ENGINE [sqlite|mysql|none]
define('WEAVE_AUTH_ENGINE', '[sqlite|mysql|none]');
</pre>
 
so for example
 
<pre>
define('WEAVE_AUTH_ENGINE', 'mysql');
</pre>
</pre>


Line 31: Line 37:


<pre>
<pre>
WEAVE_SQLITE_AUTH_DIRECTORY <path to stores directory>
define('WEAVE_SQLITE_AUTH_DIRECTORY, '<path to stores directory>');
</pre>
</pre>


Line 62: Line 68:


<pre>
<pre>
WEAVE_MYSQL_AUTH_HOST <db host>
define('WEAVE_MYSQL_AUTH_HOST', '<db host>');
WEAVE_MYSQL_AUTH_DB <db name>
define('WEAVE_MYSQL_AUTH_DB', '<db name>');
WEAVE_MYSQL_AUTH_USER <db username>
define('WEAVE_MYSQL_AUTH_USER', '<db username>');
WEAVE_MYSQL_AUTH_PASS <db password>
define('WEAVE_MYSQL_AUTH_PASS', '<db password>');
</pre>
</pre>


Line 77: Line 83:


<pre>
<pre>
WEAVE_STORAGE_ENGINE [sqlite|mysql]
define('WEAVE_STORAGE_ENGINE', '[sqlite|mysql]');
</pre>
</pre>


Line 85: Line 91:


<pre>
<pre>
WEAVE_SQLITE_STORE_DIRECTORY <path to stores directory>
define('WEAVE_SQLITE_STORE_DIRECTORY', '<path to stores directory>');
</pre>
</pre>


Line 115: Line 121:


<pre>
<pre>
WEAVE_MYSQL_STORE_HOST <db host>
define('WEAVE_MYSQL_STORE_HOST', '<db host>');
WEAVE_MYSQL_STORE_DB <db name>
define('WEAVE_MYSQL_STORE_DB', '<db name>');
WEAVE_MYSQL_STORE_USER <db username>
define('WEAVE_MYSQL_STORE_USER', '<db username>');
WEAVE_MYSQL_STORE_PASS <db password>
define('WEAVE_MYSQL_STORE_PASS', '<db password>');
</pre>
</pre>


Line 124: Line 130:


<pre>
<pre>
WEAVE_PAYLOAD_MAX_SIZE <bytes>
define('WEAVE_PAYLOAD_MAX_SIZE', '<bytes>');
</pre>
</pre>


Line 130: Line 136:


<pre>
<pre>
WEAVE_SHARE_DBH 1
define('WEAVE_SHARE_DBH', '1');
</pre>
</pre>


Line 136: Line 142:


<pre>
<pre>
WEAVE_REGISTER_USE_CAPTCHA 1
define('WEAVE_REGISTER_USE_CAPTCHA', '1');
</pre>
</pre>


Line 154: Line 160:


<pre>
<pre>
WEAVE_USER_ADMIN_SECRET <secret>
define('WEAVE_USER_ADMIN_SECRET', '<secret>');
</pre>
</pre>


15

edits

Navigation menu