resources:
# First app
app1_db:
resource_type: DittoDatabase
db_id: "APP_ID_1"
device_name: "edge-server-app1"
subscriptions:
- "SELECT * FROM collection1"
auth:
small_peers_only:
offline_license_token: "TOKEN_1"
# Second app
app2_db:
resource_type: DittoDatabase
db_id: "APP_ID_2"
device_name: "edge-server-app2"
subscriptions:
- "SELECT * FROM collection2"
auth:
server:
access_token: "TOKEN_2"
auth_url: "https://auth-url-2.cloud.dittolive.app"
provider: "__playgroundProvider"
# HTTP servers for each app
app1_http:
resource_type: HttpServer
db_id: "APP_ID_1"
base_path: app1
http_api: true
listen_addr: "0.0.0.0:8081"
app2_http:
resource_type: HttpServer
db_id: "APP_ID_2"
base_path: app2
http_api: true
listen_addr: "0.0.0.0:8082"