Skip to content

Configuring Service Catalog

Alexandr Krylovskiy edited this page Nov 7, 2014 · 7 revisions

Overview

Service Catalog is configured using a JSON configuration file, path to which is provided to the SC via -conf flag.

The default configuration file (provided in the binary distribution) is located at conf/service-catalog.json

Configuration File

{
  "description": <string>,
  "dnssdEnabled": <bool>,
  "bindAddr": <int>,
  "bindPort": <int>,
  "apiLocation": <string>,
  "staticDir": <string>,
  "storage": {
  	"type": <string>
  }
}

Where

  • description is a human-readable description for the SC
  • dnssdEnabled is a flag enabling DNS-SD advertisement of the catalog on the network
  • bindAddr is the bind address for the Service Catalog API
  • bondPort is the bind port for the API
  • apiLocation is the API location (path in the endpoint URL)
  • staticDir is the path to the directory with static files
  • storage is the configuration of the storage backend
  • type is the type of the backend (only memory is currenlty supported)

Example

The default configuration file (provided in the binary distribution) is the following:

{
  "description": "Standalone Service Catalog",
  "dnssdEnabled": true,
  "bindAddr": "0.0.0.0",
  "bindPort": 8082,
  "apiLocation": "/sc",
  "staticDir": "./static",
  "storage": {
    "type": "memory"
  }
}

Clone this wiki locally