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
+87-7Lines changed: 87 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,13 +80,13 @@ Configuration values can be supplied as environment variables, via a JSON config
80
80
|`GBM_CSS_COLUMNS`| If set (to any value) the `Column` keyword in your bookmarks will create CSS multi-column breaks rather than table cells. |
81
81
|`GBM_NAMESPACE`| Optional suffix added to the bookmarks repository name. |
82
82
|`GBM_TITLE`| Overrides the page title shown in the browser. |
83
-
|`FAVICON_CACHE_DIR`| Directory where fetched favicons are stored. If unset icons are kept only in memory. Defaults to `/data/favicons` in Docker. |
83
+
|`FAVICON_CACHE_DIR`| Directory where fetched favicons are stored. If unset icons are kept only in memory. Defaults to `/var/cache/gobookmarks/favcache` when installed system‑wide (including the Docker image). |
84
84
|`FAVICON_CACHE_SIZE`| Maximum size in bytes of the favicon cache before old icons are removed. Defaults to `20971520`. |
85
85
|`GITHUB_SERVER`| Base URL for GitHub (set for GitHub Enterprise). |
86
86
|`GITLAB_SERVER`| Base URL for GitLab (self-hosted). |
87
-
|`LOCAL_GIT_PATH`| Directory used for the local git provider. |
87
+
|`LOCAL_GIT_PATH`| Directory used for the local git provider. Defaults to `/var/lib/gobookmarks/localgit` when installed system‑wide (including the Docker image). |
88
88
|`GOBM_ENV_FILE`| Path to a file of `KEY=VALUE` pairs loaded before the environment. Defaults to `/etc/gobookmarks/gobookmarks.env`. |
89
-
|`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. |
89
+
|`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 installed system‑wide or run as root. |
90
90
91
91
Favicons fetched for your bookmarks are cached on disk when `FAVICON_CACHE_DIR` is set. The `/proxy/favicon` endpoint also accepts a `size` parameter to scale icons on the fly.
92
92
@@ -128,8 +128,8 @@ and both service files run the daemon as `gobookmarks`.
128
128
129
129
### Docker
130
130
131
-
The Docker image continues to work as before. Mount `/data` if you need
132
-
persistent storage and mount `/db` for the git provider. Pass the same environment variables as listed above. The git provider stores data under
131
+
The Docker image continues to work as before. Mount `/var/cache/gobookmarks` if you need
132
+
persistent storage for favicons and `/var/lib/gobookmarks` for the git provider. These directories are also the defaults when gobookmarks is installed system-wide under `/usr`. Pass the same environment variables as listed above. The git provider stores data under
133
133
`$LOCAL_GIT_PATH/<sha256(username)>/` as a git repository with a `.password` file containing the bcrypt hash.
134
134
Create an account via `/signup/git`. This stores the password hash under
135
135
`$LOCAL_GIT_PATH/<sha256(username)>/.password` and creates the repository. Log in
@@ -144,13 +144,93 @@ echo -n alice | sha256sum
144
144
```
145
145
146
146
The output hash forms the path `$LOCAL_GIT_PATH/<hash>/.password`.
147
-
Favicons are cached on disk under `/data/favicons` by default. Set
147
+
Favicons are cached on disk under `/var/cache/gobookmarks/favcache` by default when the program is installed system‑wide or run in Docker. Set
148
148
`FAVICON_CACHE_DIR` to an empty string to disable disk caching.
149
-
You can also mount a config file and env file:
149
+
You can run the container entirely via environment variables:
0 commit comments