Skip to content
FX7 edited this page Mar 8, 2021 · 4 revisions

config.yml explanation

restserverConfig Block

In this block the http server is configured. Mainly the port and the host.

restServerConfig: ==: RestServerConfig backlog: 0 port: 8080 host: 0.0.0.0

appAccess Block

In this block the access tokens for all apps and all access rights for this app are configured.

First there is the appName and the appKey. These two must be given in the http header of each request of the app.

The contexts define the general accessable contexts of the app. If a context is missing here, no access will be given for any action in this context, even if the app has access to an entity of this context via entityAccess.

The entityAccess defines the access for an entity in a conext. For example an app needs general access to the PLAYER context and also access to a concrete player, to ask for the location of this player.

`appAccess:

  • ==: AppAccess appName: testApp appKey: 1234-abcd contexts:
    • PLAYER
    • SCRIPT
    • WORLD entityAccess:
    • ==: EntityAccess entityName: rewardChest context: SCRIPT
    • ==: EntityAccess entityName: steve context: PLAYER
    • ==: EntityAccess entityName: world context: WORLD`

Clone this wiki locally