From b4430d3607aa837106e4985e755c54da43d33999 Mon Sep 17 00:00:00 2001 From: Adam Eijdenberg Date: Fri, 23 Feb 2024 15:26:06 +1100 Subject: [PATCH] address feedback, fix typo in example command --- changelog/unreleased/pull-272 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/changelog/unreleased/pull-272 b/changelog/unreleased/pull-272 index 4f4c207..0d8cccc 100644 --- a/changelog/unreleased/pull-272 +++ b/changelog/unreleased/pull-272 @@ -1,12 +1,12 @@ -Enhancement: can now listen on a unix socket +Enhancement: Support listening on a unix socket -If `--listen unix:/tmp/foo` is passed, the server will listen on a unix socket. This is triggered by the prefix `unix:`. +To let rest-server listen on a unix socket, prefix the socket filename with `unix:` and pass it to the `--listen` option, for example `--listen unix:/tmp/foo`. -This is useful in combination with remote port portforwarding to enable remote server to backup locally, e.g. +This is useful in combination with remote port forwarding to enable remote server to backup locally, e.g. -```bash +``` rest-server --listen unix:/tmp/foo & -ssh -R /tmp/foo:/tmp/foo user@host restic -r rest:http+unix:/tmp/foo:/repo backup +ssh -R /tmp/foo:/tmp/foo user@host restic -r rest:http+unix:///tmp/foo:/repo backup ``` https://github.com/restic/rest-server/pull/272