Copy of static files (managed by assetManager) in another server

Hello

We have two servers, in Germany and in Russia. Main app is in german server. Now all static files manages by asset manager and loads from Germany.

We want load static files from our russian server (almost all clients from Russia).

What is the best way to do it?

I have only one idea - to create a copy of site on russian server with this tasks:

  • After deploing to main server we must to deploy to new server

  • After deploing to new server we must find all asset bundles and publish it

  • We must replace hashCallback of AssetManager to another without last modified time,

  • We must set baseUrl option of assetManager to ‘http:_//newserverurl.ru/assets/’

I’d set up rsync between these servers and overwrite baseUrl for assets if you don’t actually need to run application on Russian server.