From bda05f71f62795bf50b9be7e13f57bf1128b72fd Mon Sep 17 00:00:00 2001 From: Sung Won Cho Date: Sat, 7 Sep 2019 12:46:12 +1000 Subject: [PATCH] Add instructions on configuring CLI (#251) --- SELF_HOSTING.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SELF_HOSTING.md b/SELF_HOSTING.md index b91bd04c..b2997d87 100644 --- a/SELF_HOSTING.md +++ b/SELF_HOSTING.md @@ -122,3 +122,20 @@ UPDATE users SET cloud = true FROM accounts WHERE accounts.user_id = users.id AN ``` Replace `$yourEmail` with the email you used to create the account. + +### Configure clients + +Let's configure Dnote clients to connect to the self-hosted web API endpoint. + +#### CLI + +We need to modify the configuration file for the CLI. It should have been generated at `~/.dnote/dnoterc` upon running the CLI for the first time. + +The following is an example configuration: + +```yaml +editor: nvim +apiEndpoint: https://api.dnote.io +``` + +Simply change the value for `apiEndpoint` to a full URL to the self-hosted instance, and save the configuration file.