+1








766fb96ff2
* Adding support for hosting with URL prefix to make reverse-proxy setup on sub-path possible
* Adjusting recent changes to auth.html (changing to relative URLs) after rebasing from upstream
* Adjusting service_worker and application manifest to support URL-prefix
* Add notes on Space Lua Pattern Matching (#1366)
* Remove common/space_lua/stdlib/math.md (#1371)
* Escape pipe symbol in string.gsub (#1370)
* feat: configure vim in CONFIG (#1369)
* Fix week calculation (#1368)
* Add more tests for week calculation
* Fix week calculation
* Add more tests
* Implement Lua built-in function os.difftime (#1367)
* Implement Lua built-in function os.difftime
* Test os.difftime
---------
Co-authored-by: Zef Hemel <zef@zef.me>
* Fix index page naming during server initialization (#1365)
* Allow non-zero shell exit codes (#1377)
* Generate version from git describe at build time (#1374)
* Generate version from git describe at build time
* Add 2.0-beta prefix
* Use Deno.Command instead of Deno.run
* Add missing case to math.random and check arguments (#1372)
* Fix paragraphs for the tag page (#1376)
* Render a predefined string for empty markdown table instead of pipe characters (#1387)
* Fix string.find (#1390)
* Fetch tags and history for proper version string generation (#1388)
* Fix support for disabling shortcuts (#1393)
* Add GitHub Actions Cache to reduce build times (#1394)
* Order strings in queries using collation algorithm (#1391)
Configurable with queryCollation, default value maintains old behaviour.
Added tests, schema, example settings, and documentation to query page.
Close: #614
Close: #1316
* Utility function to handle empty query results and templates (#1386)
* Add global Lua function 'some'
Moved documentation for 'each' function to non-standard section.
* Revert "Add optional argument to template.each for empty collection output (#1359)"
This reverts commit b73dadec67.
* Reimplement #1359 using 'some' function
* Update Lua to event.listEvents to match plugos syscall (#1397)
The documentation, example, and other function names use
`event.listEvents`, but `event.list` is being registered with the
client.
* Update widget header to not overflow container (#1410)
Also add a 10px margin below the header to maintain consistent spacing
around the widget contents.
* fix: case insensitive admonitions by default (#1409)
* fix: closing bracket is missing (#1408)
* Add optional priority attribute to PageCreatingContent (#1392)
* Add optional priority attribute to PageCreatingContent
* Minor simplification
* Fix comments
* Revert changes
* Add pageEventHandlers
* Use UTC year, month, and date for strings lacking time components (#1403)
* feat: allow CONFIG.md in any directory (#1398)
* fix: bundle external dependencies (#1379)
* Deno bump
* Copy-edit splash screen text (#1413)
* Fixes #1401 by implementing Lua's select
* Fixes offline capability of PWA (I hope).
Now storing config in localStorage.
* fix lint
* Reduce blast radius of Lua errors
* Fixes #1411: adds 'priority' setting for space style
* Refactor: Merging common/ into web/
* Fixes #1400
* Improves #1312 by rendering Lua expressions (but not widgets)
* Fix minor typos, add configuration to the docs
---------
Co-authored-by: wbhouston <wmbhouston@gmail.com>
Co-authored-by: Lennart Ochel <lennart.ochel@outlook.com>
Co-authored-by: Matthias Benaets <89214559+MatthiasBenaets@users.noreply.github.com>
Co-authored-by: Zef Hemel <zef@zef.me>
Co-authored-by: Marek S. Łukasiewicz <marek@lukasiewicz.tech>
Co-authored-by: Ivan Alejandro <ivanalejandro0@gmail.com>
Co-authored-by: Albert-Jan de Vries <aj+github@albert-jandevries.nl>
Co-authored-by: Cole Stowell <121599022+costowell@users.noreply.github.com>
Co-authored-by: Jim Tittsler <jimt@onjapan.net>
3.0 KiB
3.0 KiB
SilverBullet is primarily configured via environment variables. This page gives a comprehensive overview of all configuration options. You can set these ad-hoc when running the SilverBullet server, or e.g. in your Install/Docker.
General configuration
SB_INDEX_PAGE: Sets the default page to load, defaults toindex.SB_SPACE_IGNORE: Ignore certain path patterns based on a .gitignore style format, e.g.SB_SPACE_IGNORE="IgnoreMe/*".
Network
SB_HOSTNAME: Set to the hostname to bind to (defaults to127.0.0.0, set to0.0.0.0to accept outside connections for the local deno setup, defaults to0.0.0.0for docker)SB_PORT: Sets the port to listen to, e.g.SB_PORT=1234, default is3000SB_URL_PREFIX: Host SilverBullet on a particular URL prefix, e.g.SB_URL_PREFIX=/notes
Authentication
SilverBullet supports basic authentication for a single user.
SB_USER: Sets single-user credentials, e.g.SB_USER=pete:1234allows you to login with username “pete” and password “1234”.SB_AUTH_TOKEN: EnablesAuthorization: Bearer <token>style authentication on the HTTP API.SB_LOCKOUT_LIMIT: Specifies the number of failed login attempt before locking the user out (for aSB_LOCKOUT_TIMEspecified amount of seconds), defaults to10SB_LOCKOUT_TIME: Specifies the amount of time (in seconds) a client will be blocked until attempting to log back in.
Storage
SilverBullet supports storage backends for keeping your Spaces content. Right now the only supported backend is to use your local disk.
Disk storage
This is the default and simplest backend to use: a folder on disk. It is configured as follows:
SB_FOLDER: Sets the folder to expose. In the docker container, this defaults to/space.
Run mode
SB_READ_ONLY(==Experimental==): If you want to run the SilverBullet client and server in read-only mode (you get the full SilverBullet client, but all edit functionality and commands are disabled), you can do this by setting this environment variable totrue. Upon the server start a full space index will happen, after which all write operations will be disabled.
Security
SilverBullet enables plugs to run shell commands. This is potentially unsafe. If you don’t need this, you can disable this functionality:
SB_SHELL_BACKEND: Enable/disable running of shell commands from plugs, defaults tolocal(enabled), set tooffto disable. It is only enabled when using a local folder for #Storage.
Docker
Configuration only relevant to docker deployments:
PUID: Runs the server process with the specified UID (default: whatever user owns the/spacemapped folder)GUID: Runs the server process with the specified GID (default: whatever group owns the/spacemapped folder)
Web app manifest
Configure aspects of web app appearance:
SB_NAME: Setsnameandshort_namemembers of web app manifest to whatever specified inSB_NAMESB_DESCRIPTION: Setsdescriptionmember of web app manifest to whatever specified inSB_DESCRIPTION