Configuration file

The configuration for the mbox2gs script is handled by the gs.config module [1]. It is entirely concerned with token authentication [2]. To authenticate script needs to pass a token to the web pages that are used to add a post [3]. The pages compare the token that was passed in to one that is stored in the database. If they match the script is allowed to post.

Examples

Below is the configuration of the token for the GroupServer instance default:

[webservice-default]
token = theValueOfTheToken

A more complex system, which has separate testing and production environments:

[config-testing]
...
webservice = testing

[config-production]
...
webservice = production

[webservice-testing]
token = theValueOfTheTokenForTesting

[webservice-production]
token = theValueOfTheTokenForProduction

The token-configuration for two separate sites (accessed through different URLs) that are supported by the same database:

[config-firstSite]
...
webservice = default

[config-secondSite]
...
webservice = default

[webservice-default]
token = theValueOfTheDefaultToken
[1]See gs.config <https://github.com/groupserver/gs.config>
[2]See gs.auth.token <https://github.com/groupserver/gs.auth.token>
[3]See gs.group.messages.add.base <https://github.com/groupserver/gs.group.messages.add.base>