-
Notifications
You must be signed in to change notification settings - Fork 168
WIP: Add configuration file #140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Add config file support - Use go-tlsconfig for TLS cert configuration - Add NewServer func to create a Server from a config - Remove Server attributes that only existed for flag parsing
Allow per-user overrides for AppendOnly and PrivateRepos.
|
I am willing to update this PR to the latest version of restic if there is interest in merging this. |
|
@wojas Please update to the latest version, if you could find time - even if there is no apparent interest in merging, there is definitely interest in using it. And thank you for such a nice feature 👍 |
|
Some friends and I had a tackle at rebasing this patch to master on my fork In the coming days I'll open another PR once i've figured out the little things |
|
This would be huge if it were merged. Among other things using --append-only on an untrusted rest-server is a mess, since prune needs to be done by a separate user. Which currently means everyone has to cobble together their own solutions for running a repo under two server instances, while also making sure they don't conflict in a way that risks data loss. |
What is the purpose of this change? What does it change?
This implements a YAML config file mechanism for rest-server. See #139 for details.
Was the change discussed in an issue or in the forum before?
Closes #139 (config file)
Closes #94 (TLS hot reload)
Closes #74 (per-user config overrides)
TODO: Closes #73 (TLS client auth): still need to actually use the client TLS info
Try it out
To build this branch, you need git and a recent Go compiler installed and run the following:
You will then have a
rest-serverbinary in this directory.Checklist
changelog/unreleased/that describes the changes for our users (template here)gofmton the code in all commits