Skip to content

v0.13.0

Latest
Compare
Choose a tag to compare
@fd0 fd0 released this 26 Jul 12:53
· 5 commits to master since this release
v0.13.0

Changelog for rest-server 0.13.0 (2024-07-26)

The following sections list the changes in rest-server 0.13.0 relevant to users. The changes are ordered by importance.

Summary

  • Chg #267: Update dependencies and require Go 1.18 or newer
  • Chg #273: Shut down cleanly on TERM and INT signals
  • Enh #271: Print listening address after start-up
  • Enh #272: Support listening on a unix socket

Details

  • Change #267: Update dependencies and require Go 1.18 or newer

    Most dependencies have been updated. Since some libraries require newer language features, support for Go 1.17 has been dropped, which means that rest-server now requires at least Go 1.18 to build.

    #267

  • Change #273: Shut down cleanly on TERM and INT signals

    Rest-server now listens for TERM and INT signals and cleanly closes down the http.Server and listener when receiving either of them.

    This is particularly useful when listening on a unix socket, as the server will now remove the socket file when it shuts down.

    #273

  • Enhancement #271: Print listening address after start-up

    When started with --listen :0, rest-server would print start server on :0

    The message now also includes the actual address listened on, for example start server on 0.0.0.0:37333. This is useful when starting a server with an auto-allocated free port number (port 0).

    #271

  • Enhancement #272: Support listening on a unix socket

    It is now possible to make rest-server listen on a unix socket by prefixing the socket filename with unix: and passing it to the --listen option, for example --listen unix:/tmp/foo.

    This is useful in combination with remote port forwarding to enable a remote server to backup locally, e.g.:

    rest-server --listen unix:/tmp/foo &
    ssh -R /tmp/foo:/tmp/foo user@host restic -r rest:http+unix:///tmp/foo:/repo backup
    

    #272