Configuration File
Sync Gateway uses a JSON-like configuration file to define its runtime behavior. The file’s contents include, for example:
-
Details of the connected Couchbase databases
-
How replications are conducted
-
What security is to be used
-
What logging options are to be applied, and
-
Any customization of import filtering and synchronization.
The majority of the configuration is achieved using standard JSON syntax — see Configuration Reference for more.
The |
Use the following command to run Sync Gateway with a configuration file:
sync_gateway sync-gateway-config.json