Get the latest tech news
Nginx Restic Back End
Mike Cardwell's Tech Blog. Security, privacy, and technology
To achieve this, I used the autoindex functionality built into Nginx (in the @list_objects location block), and set it to return JSON instead of the default HTML. Don’t worry, on Debian at least, DAV is built in, and the LUA module can be used simply by doing an “apt install nginx libnginx-mod-http-lua” With a few small backwards compatible changes to the restic client and API, I could remove the LUA dependency, and the need to proxy write requests.
Or read this on Hacker News