windows server 2019, except for Caddy which is installed on the host all the other services and applications are run in docker containers.
It’s not a problem (yet), I’d like to understand if and how I could serve two different services on the same origin.
I have two docker containers:
- one running a Vue SPA + nginx
- one running a Go application exposing a set of API for the SPA to use
I’d like to understand if and how I could change this setup so that the website is served via domain1.com and the API on domain1.con/api
This could save me some hassle with browsers CORS policy and some authentication settings.
I tried to dig the documentation without grasping concepts I could make use of.