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
azure domain can be overridden with env variable #4387
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this issue! The PR currently still needs a bit of polishing, see the comments below. The comments also explain where to add documentation. For testing it should be sufficient to manually verify that the parameter works as intended and does not change the current behavior is no other azure endpoint is specified.
I have fixed everything you mentioned. Thanks for the help! |
a2bee0b
to
e36d17a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
I've squash the commits and added a few further tweaks.
What does this PR change? What problem does it solve?
Restic backups on azure only worked for storages on the global domain
core.windows.net
. This meant that backups to other domains such as Azure China (core.chinacloudapi.cn') were not supported. Restic now allows overriding the global domain using the environment variable
AZURE_DOMAIN'.Was the change previously discussed in an issue or on the forum?
Closes #2468
Checklist
changelog/unreleased/
that describes the changes for our users (see template).gofmt
on the code in all commits.