How to: Configure the Datasource with Provisioning
It’s now possible to configure datasources using config files with Grafana’s provisioning system.
You can read more about how it works and all the settings you can set for datasources on the [provisioning docs page](http://docs.grafana.org/administration/provisioning/#datasources).

Here are some provisioning example:

```yaml
apiVersion: 1

datasources:
 - name: Clickhouse
   type: vertamedia-clickhouse-datasource
   access: proxy
   url: http://localhost:8123
   #
enable/disable basic auth
   basicAuth: false
   #
basic auth username
   basicAuthUser: "default"
   #
enable/disable with credentials headers
   withCredentials: false
   #
mark as default datasource. Max one per org
   isDefault: false
   #
fields that will be converted to json and stored in json_data
   jsonData:
     #
enable/disable sending 'add_http_cors_header=1' parameter
     addCorsHeader: false
     #
enable/disable using POST method for sending queries
     usePOST: false
     #
enable/disable using Accept-Encoding header in each request
     useCompression: false
     #
compression type allowed values: gzip, zstd, br, deflate
     compressionType: ""
     #
default database name
     defaultDatabase: ""
     #
enable/disable tls authorization
     tlsAuth: false
     #
enable/disable tls authorization with custom ca
     tlsAuthWithCACert: false
     #
enable/disable authorization with X-ClickHouse-* headers
     useYandexCloudAuthorization: false
     #
X-ClickHouse-Key header value for authorization
     xHeaderUser: ""
     #
the same value as url when `useYandexCloudAuthorization: true` 
     # @todo remove this workaround when merge https://github.com/grafana/grafana/pull/80858
     dataSourceUrl: "http://localhost:8123"
   secureJsonData:
     #
X-ClickHouse-User header value for authorization
     xHeaderKey: ""
     #
basic auth password
     basicAuthPassword: ""
     #
custom certificate authority for TLS https connection, base64 encoded 
     tlsCACert: ""
     #
custom client certificate for TLS https connection, base64 encoded 
     tlsClientCert: ""
     #
custom client secret key for TLS https connection, base64 encoded 
     tlsClientKey: ""
```

Some settings and security params are the same for all datasources. You can find them [here](http://docs.grafana.org/administration/provisioning/#example-datasource-config-file).