Update README with --admin-prefix info
This commit is contained in:
parent
14adbdf742
commit
f3ee295663
21
README.md
21
README.md
|
@ -19,6 +19,25 @@ Dockerfile available [here](https://git.seedno.de/seednode/roulette/raw/branch/m
|
|||
|
||||
An example instance with most features enabled can be found [here](https://nature.seedno.de/).
|
||||
|
||||
## Admin prefix
|
||||
You can restrict access to certain functionality by prepending a secret string to the paths.
|
||||
|
||||
For example, providing the `--admin-prefix=abc123` flag will register the index rebuild path as `/abc123/index/rebuild`.
|
||||
|
||||
The affected paths are:
|
||||
- `/debug/pprof/`
|
||||
- `/debug/pprof/cmdline`
|
||||
- `/debug/pprof/profile`
|
||||
- `/debug/pprof/symbol`
|
||||
- `/debug/pprof/trace`
|
||||
- `/extensions/available`
|
||||
- `/extensions/enabled`
|
||||
- `/index/html`
|
||||
- `/index/json`
|
||||
- `/index/rebuild`
|
||||
- `/types/available`
|
||||
- `/types/enabled`
|
||||
|
||||
## Filtering
|
||||
You can provide a comma-delimited string of alphanumeric patterns to match via the `include=` query parameter, assuming the `-f|--filter` flag is enabled.
|
||||
|
||||
|
@ -113,12 +132,14 @@ Usage:
|
|||
roulette <path> [path]... [flags]
|
||||
|
||||
Flags:
|
||||
--admin-prefix string string to prepend to administrative paths
|
||||
-a, --all enable all supported file types
|
||||
--audio enable support for audio files
|
||||
-b, --bind string address to bind to (default "0.0.0.0")
|
||||
--case-sensitive use case-sensitive matching for filters
|
||||
--code enable support for source code files
|
||||
--code-theme string theme for source code syntax highlighting (default "solarized-dark256")
|
||||
--concurrency int maximum concurrency for scan threads (default 1024)
|
||||
--disable-buttons disable first/prev/next/last buttons
|
||||
--exit-on-error shut down webserver on error, instead of just printing the error
|
||||
--fallback serve files as application/octet-stream if no matching format is registered
|
||||
|
|
Loading…
Reference in New Issue