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: bukuserver-runner/README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,24 @@ In GUI mode, the prompt is implemented as 2 dialogs; a list of databases to choo
16
16
17
17
Running `buku-server.py --stop` will kill the currently running Bukuserver process (thus allowing to restart it in the background, like a daemon). `buku-server.py --stop-if-running` will either start the script or kill Bukuserver if it's running already.
_**¹**_ valid boolean values are `true`, `false`, `1`, `0` (case-insensitive).
126
130
127
-
Note: `BUKUSERVER_`is the common prefix (_every variable starts with it_).
131
+
_**²**_ if input is invalid, the default value will be used if defined
128
132
129
-
Note: Valid boolean values are `true`, `false`, `1`, `0` (case-insensitive).
133
+
_**³**_`BUKUSERVER_DB_FILE` can be a DB name (plain filename without extension; cannot contain `.`). The specified DB with `.db` extension is located in default DB directory (which you can override with `BUKU_DEFAULT_DBDIR`).
130
134
131
-
Note: if input is invalid, the default value will be used if defined
135
+
_**⁴**_`BUKUSERVER_LOCALE` requires either `flask_babel` or `flask_babelex` installed
132
136
133
-
Note: `BUKUSERVER_DB_FILE` can be a DB name (plain filename without extension; cannot contain `.`). The specified DB with `.db` extension is located in default DB directory (which you can override with `BUKU_DEFAULT_DBDIR`).
137
+
_**⁵**_ the value for `BUKUSERVER_REVERSE_PROXY_PATH` is recommended to include preceding slash and not have trailing slash (i.e. use `/foo` not `/foo/`)
134
138
135
-
Note: `BUKUSERVER_LOCALE` requires either `flask_babel` or `flask_babelex` installed
136
139
137
-
e.g. to set bukuserver to show 100 item per page run the following command
140
+
#### How to specify environment variables
138
141
142
+
E.g. to set bukuserver to show 100 items per page run the following command:
139
143
```
140
144
# on linux
141
145
$ export BUKUSERVER_PER_PAGE=100
@@ -145,11 +149,14 @@ $ SET BUKUSERVER_PER_PAGE=100
145
149
146
150
# in dockerfile
147
151
ENV BUKUSERVER_PER_PAGE=100
152
+
153
+
# in env file
154
+
BUKUSERVER_PER_PAGE=100
148
155
```
149
156
150
-
Note: the value for BUKUSERVER_REVERSE_PROXY_PATH
151
-
is recommended to include preceding slash and not have trailing slash
152
-
(i.e. use `/foo` not `/foo/`)
157
+
Note: an env file can be supplied either [by providing `--env-file` CLI argument](https://flask.palletsprojects.com/en/stable/cli/#environment-variables-from-dotenv) (requires `python-dotenv` installed),
158
+
or as config for [the runner script](https://github.com/jarun/buku/wiki/Bukuserver-%28WebUI%29#runner-script).
159
+
153
160
154
161
#### Why favicons are disabled by default
155
162
@@ -169,68 +176,70 @@ It is important to note that favicon can potentially be exploited in this way.
169
176
170
177
### Screenshots
171
178
179
+
_**Note: more screenshots (to show off `default` & `slate` themes) can be found [on the respective project wiki page](https://github.com/jarun/buku/wiki/Bukuserver-%28WebUI%29)**_
0 commit comments