mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
Update readme and changelog
This commit is contained in:
parent
9db2d52fbe
commit
ff88e6812d
2 changed files with 26 additions and 1 deletions
|
@ -60,6 +60,7 @@ To learn how to use restic backup client with REST backend, please consult [rest
|
||||||
--path string data directory (default "/tmp/restic")
|
--path string data directory (default "/tmp/restic")
|
||||||
--private-repos users can only access their private repo
|
--private-repos users can only access their private repo
|
||||||
--prometheus enable Prometheus metrics
|
--prometheus enable Prometheus metrics
|
||||||
|
--prometheus-no-auth disable auth for Prometheus /metrics endpoint
|
||||||
--tls turn on TLS support
|
--tls turn on TLS support
|
||||||
--tls-cert string TLS certificate path
|
--tls-cert string TLS certificate path
|
||||||
--tls-key string TLS key path
|
--tls-key string TLS key path
|
||||||
|
@ -125,7 +126,7 @@ or
|
||||||
|
|
||||||
## Prometheus support and Grafana dashboard
|
## Prometheus support and Grafana dashboard
|
||||||
|
|
||||||
The server can be started with `--prometheus` to expose [Prometheus](https://prometheus.io/) metrics at `/metrics`.
|
The server can be started with `--prometheus` to expose [Prometheus](https://prometheus.io/) metrics at `/metrics`. If authenticaiton is enabled, this endpoint requires authentication for the 'metrics' user, but this can be overridden with the `--prometheus-no-auth` flag.
|
||||||
|
|
||||||
This repository contains an example full stack Docker Compose setup with a Grafana dashboard in [examples/compose-with-grafana/](examples/compose-with-grafana/).
|
This repository contains an example full stack Docker Compose setup with a Grafana dashboard in [examples/compose-with-grafana/](examples/compose-with-grafana/).
|
||||||
|
|
||||||
|
@ -136,6 +137,8 @@ Compared to the SFTP backend, the REST backend has better performance, especiall
|
||||||
|
|
||||||
But, even if you use HTTPS transport, the REST protocol should be faster and more scalable, due to some inefficiencies of the SFTP protocol (everything needs to be transferred in chunks of 32 KiB at most, each packet needs to be acknowledged by the server).
|
But, even if you use HTTPS transport, the REST protocol should be faster and more scalable, due to some inefficiencies of the SFTP protocol (everything needs to be transferred in chunks of 32 KiB at most, each packet needs to be acknowledged by the server).
|
||||||
|
|
||||||
|
One important safety feature that Rest Server adds is the optional ability to run in append-only mode. This prevents an attacker from wiping your server backups when access is gained to the server being backed up.
|
||||||
|
|
||||||
Finally, the Rest Server implementation is really simple and as such could be used on the low-end devices, no problem. Also, in some cases, for example behind corporate firewalls, HTTP/S might be the only protocol allowed. Here too REST backend might be the perfect option for your backup needs.
|
Finally, the Rest Server implementation is really simple and as such could be used on the low-end devices, no problem. Also, in some cases, for example behind corporate firewalls, HTTP/S might be the only protocol allowed. Here too REST backend might be the perfect option for your backup needs.
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
22
changelog/unreleased/pull-112
Normal file
22
changelog/unreleased/pull-112
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
Change: refactor handlers, add subrepo support
|
||||||
|
|
||||||
|
We have split out all HTTP handling to a separate `repo` subpackage to cleanly
|
||||||
|
separate the server code from the code that handles a single repository.
|
||||||
|
|
||||||
|
The refactoring makes the code significantly easier to follow and understand,
|
||||||
|
which in turn makes it easier to add new features, audit for security and debug
|
||||||
|
issues.
|
||||||
|
|
||||||
|
The new RepoHandler also makes it easier to reuse rest-server as a Go component in
|
||||||
|
any other HTTP server.
|
||||||
|
|
||||||
|
As part of the refactoring, support for multi-level repositories has been added, so
|
||||||
|
now each user can have its own subrepositories. This feature is always enabled.
|
||||||
|
|
||||||
|
Authentication for the Prometheus /metrics endpoint can now be disabled with the
|
||||||
|
new `--prometheus-no-auth` flag.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/pull/112
|
||||||
|
https://github.com/restic/restic/issues/109
|
||||||
|
https://github.com/restic/restic/issues/107
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue