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

no edit summary
No edit summary
Line 138: Line 138:


If both the storage engine and authentication engine are using the same database, setting this makes both engines use the same database handler rather than opening different ones. Note that SQLite cannot use the same db for authentication and storage.
If both the storage engine and authentication engine are using the same database, setting this makes both engines use the same database handler rather than opening different ones. Note that SQLite cannot use the same db for authentication and storage.
== Setting up Weave Admin ==
You can create, update passwords and delete users through the Server Admin API.
Add the following to your apache conf:
<pre>
Alias /weave/admin <path to the admin.php script>
</pre>
Due to the security concerns, this script should be additionally protected, either through denying most IPs, or using htaccess. Additionally, the following envronment variable, if set, is required to be passed in for all transactions to the server:
<pre>
SetEnv WEAVE_USER_ADMIN_SECRET <secret>
</pre>
The admin interface requires post, and accepts the following parameters:
{| width="100%" cellpadding="3"
|- style="background-color: #efefef;"
| style="background-color: #efefef;" | '''Parameter'''
| style="background-color: #efefef; width: 100px"
| '''Description'''
|- valign="top"
| function
| [create|update|delete]
|- valign="top"
| username
| The username to be operated on.
|- valign="top"
| password
| Required if creating a user or changing the password
|- valign="top"
| secret
| The secret, if one has been required by WEAVE_USER_ADMIN_SECRET
||}


== Testing the Weave Server ==
== Testing the Weave Server ==


The load_data.pl script will run a series of tests against your server, creating, modifying, selecting from and deleting a collection. Make sure to change the parameters at the top before running it. Also, the script requires the libwww-perl module.
The load_data.pl script will run a series of tests against your server, creating, modifying, selecting from and deleting a collection. Make sure to change the parameters at the top before running it. Also, the script requires the libwww-perl module.
canmove, Confirmed users
1,173

edits