You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1003 B

  1. ## YDB
  2. database: https://github.com/ydb-platform/ydb
  3. go driver: https://github.com/ydb-platform/ydb-go-sdk
  4. options:
  5. ```
  6. [ydb]
  7. enabled=true
  8. dsn=grpcs://ydb-ru.yandex.net:2135/?database=/ru/home/username/db
  9. prefix="seaweedfs"
  10. useBucketPrefix=true
  11. poolSizeLimit=50
  12. ```
  13. Authenticate produced with one of next environment variables:
  14. * `YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS=<path/to/sa_key_file>` — used service account key file by path
  15. * `YDB_ANONYMOUS_CREDENTIALS="1"` — used for authenticate with anonymous access. Anonymous access needs for connect to testing YDB installation
  16. * `YDB_METADATA_CREDENTIALS="1"` — used metadata service for authenticate to YDB from yandex cloud virtual machine or from yandex function
  17. * `YDB_ACCESS_TOKEN_CREDENTIALS=<access_token>` — used for authenticate to YDB with short-life access token. For example, access token may be IAM token
  18. * `YDB_CONNECTION_STRING="grpcs://endpoint/?database=database"`
  19. * i test using this dev database:
  20. `make dev_ydb`