Add support for Onedrive business China

Greetings Duplicacy dev team,

Due to the connection speed from China to the global onedrive service, I’d like to use the office 365 of region China (see Office 365 operated by 21Vianet - Microsoft 365 admin | Microsoft Docs). It has different graph api and login addresses (see API endpoints of Office 365 for China | Microsoft Docs):

Login: [](
Graph API: [](

Is it possible to add support for this to the Webui version? Thanks.

Can you modify the API url here:

And then compile your own CLI binary and replace the one under ~/.duplicacy-web/bin to see if it works?

Well, the compiling end up successfully, but I can’t obtain the login token though “OneDrive for Duplicacy” since the different login address for Onedrive Business China. Just replacing “” with “” will give error:

AADSTS700016: Application with identifier ‘5dfbbed0-e50f-44ac-a703-e411d49fde3b’ was not found in the directory