We are moving our legacy deployment to Docker Containers. All services will be running in seperate docker containers. Services includes Postgres, Redis, JobProcessor, LogProcessor, Nginx with Consul template, Consul, Registrator, Rabbitmq and the Platform(Node JS).
We have splitted these services as Master and Platform. Master services includes all the above mentioned services except the platform.
Platform will run single application based on customer requirements. We will modify platform code also to fit customer requirement. Changes include design, layout, images and even sometimes API (include/remove API). So Each application will be running as separate container.
Customer can access the application using http://platform.com/AppName
Platform is built using NodeJs, AngularJs. We handled code to make dynamic http calls based on app name. Now the challenge is to load the css files, images and some static js files. We dont want to modify code to update url for each application.
Is there any known approach to hack this?
This is how what i understand, you want to access same set of static files (css and images) using different URL's.
Guess that should be simple by specifying re write URL format and point to one static URL. So same content will be server using different dynamic URL.
rewrite URL format will be looks like : some-domain.com/{%a-z}/style.css some-domain.com/style.css
So it can server for all products. Hope this will help you.