Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Repository URLs for --private-repos in README #76
The README currently states rest:https://foo:pass@host:8000/foo/bar as a valid URL for user foo when using --private-repos. But when using such a URL rest-server answers with a 500 Internal Server Error (ignored by restic) first and with a 404 Not Found second on restic init.
We could just fix this error in the documentation or enable such multiple repos for one user. There are some corner cases where this may be interesting to have.
Implementing it for some other separator (e.g. '+') would be pretty easy. I thought I need this, so I already implemented it in https://github.com/moho1/rest-server/tree/multiple_private_repos , but then I found out I don't need it, so I am not opening a pull request here but leave it as discussion. I can happily open a pull request if this is wanted this way.
Implementing it with '/' as separator would be much nicer, but more complex.
I was about to open an issue about this, for me is useful.
In my case we have several customers and each one have severals apps, so I end up with something like:
I know I can backup all apps in the same repository for a customer, but having it this ways allow us to:
This can be easily done in the command line, but I don't want to have an instance of rest-server per customer (this would be a solution, but not optimal)