ipol-journal / ipolDevel

IPOL demo system development
GNU Affero General Public License v3.0
23 stars 3 forks source link

Draft: Improve API endpoint for demorunners #123

Closed kidanger closed 2 years ago

kidanger commented 2 years ago
  1. api change: /api/demorunner/<call> -> /api/demorunner/<dr-name>/<call>
  2. internal services now talk to the main nginx using the environment variable IPOL_HOST / IPOL_URL, which is more flexible than socket.getfqdn() (including the possibility to use https instead of the hard-coded http)
  3. the server field of the demorunners should be set to IPOL_URL in all cases, this field can be removed in the future. Nginx will route to the right demorunner

This was not tested in the docker test environment, but I don't expect major changes.

DR tests are probably broken and should use the main nginx instead.