You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Configuration values can be supplied as environment variables, via a JSON config
81
81
|`FAVICON_CACHE_SIZE`| Maximum size in bytes of the favicon cache before old icons are removed. Defaults to `20971520`. |
82
82
|`GITHUB_SERVER`| Base URL for GitHub (set for GitHub Enterprise). |
83
83
|`GITLAB_SERVER`| Base URL for GitLab (self-hosted). |
84
-
|`JSON_DB_PATH`| Directory used for the local JSON provider. |
84
+
|`LOCAL_GIT_PATH`| Directory used for the local git provider. |
85
85
|`GOBM_ENV_FILE`| Path to a file of `KEY=VALUE` pairs loaded before the environment. Defaults to `/etc/gobookmarks/gobookmarks.env`. |
86
86
|`GOBM_CONFIG_FILE`| Path to the JSON config file. If unset the program uses `$XDG_CONFIG_HOME/gobookmarks/config.json` or `$HOME/.config/gobookmarks/config.json` for normal users and `/etc/gobookmarks/config.json` when run as root. |
87
87
@@ -126,10 +126,12 @@ and both service files run the daemon as `gobookmarks`.
126
126
### Docker
127
127
128
128
The Docker image continues to work as before. Mount `/data` if you need
129
-
persistent storage and mount `/db` for the JSON provider. Pass the same environment variables as listed above. The JSON provider stores data under
130
-
`$JSON_DB_PATH/<sha256(username)>/` with a `.password` file containing the bcrypt hash,
131
-
`bookmarks.txt`, `branches.txt`, `tags.txt` and a tar archive per branch.
132
-
Login with this provider via `/login/json` using the username and password that match the stored bcrypt hash.
129
+
persistent storage and mount `/db` for the git provider. Pass the same environment variables as listed above. The git provider stores data under
130
+
`$LOCAL_GIT_PATH/<sha256(username)>/` as a git repository with a `.password` file containing the bcrypt hash.
131
+
Create an account via `/signup/git`. This stores the password hash under
132
+
`$LOCAL_GIT_PATH/<sha256(username)>/.password` and creates the repository. Log in
133
+
later via `/login/git` using the same credentials. Passwords can be updated with
134
+
the provider's SetPassword method.
133
135
Favicons are cached on disk under `/data/favicons` by default. Set
134
136
`FAVICON_CACHE_DIR` to an empty string to disable disk caching.
0 commit comments