Skip to content

Commit

Permalink
Merge pull request sonic-net#71 from sachinholla/buzznikplus
Browse files Browse the repository at this point in the history
Include REST_SERVER schema
  • Loading branch information
anand-kumar-subramanian authored Sep 10, 2020
2 parents bb1ac6f + dd31389 commit c2cbe73
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions release_documents/ConfigDB-Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Table of Contents
* [Drop Monitor](#drop-monitor)
* [Tail Timestamping](#tail-timestamping)
* [Snapshot](#snapshot)
* [REST Server](#rest-server)
* [For Developers](#for-developers)
* [Generating Application Config by Jinja2 Template](#generating-application-config-by-jinja2-template)
* [Incremental Configuration by Subscribing to ConfigDB](#incremental-configuration-by-subscribing-to-configdb)
Expand Down Expand Up @@ -2896,6 +2897,34 @@ The snapshot interval configuration is defined in **SNAPSHOT_TABLE**.
}
```

### REST Server

REST Serever configurations are defined in **REST_SERVER** table. Only one row can be created with name *default*. This is an optional configuration. REST Server will run with default configurations when the *REST_SERVER|default* entry does not exist.

```
key = REST_SERVER|default ; REST server configurations.
;field = value
port = 1*5DIGIT ; server port - defaults to 443
client_auth = "none" / "password" / "jwt" / "cert"
; Client authentication mode.
; none: No authentication, all clients
; are allowed. Should be used only
; for debugging.
; password: HTTP Basic authentication.
; jwt : HTTP Bearer Token authentication with
; JSON Web Token format.
; cert: Certificate based authentication.
; Requires ca_crt configuration.
; Any combination of "password", "jwt" and "cert" modes can be
; enabled by specifying a comma separated values.
; Eg: "password,jwt" enables both password and jwt modes.
log_level = DIGIT ; Verbosity for glog.V logs
server_crt = 1*VCHAR ; Path to TLS certificate file
server_key = 1*VCHAR ; Path to TLS private key file
ca_crt = 1*VCHAR ; Path to the CA certificate to be used for
; client certificate validation.
```

For Developers
==============

Expand Down

0 comments on commit c2cbe73

Please sign in to comment.