The current version of api-platform and the examples I found for docker-compose / traefik-1 configs do not work for me.
I figured out a config that works and does what I want: no forwarded ports for all the services, HTTP for the services behind traefik, HTTPS for traefik, Hostnames for the services:
- https://client.api-platform-new.loc
- https://admin.api-platform-new.loc
- https://vulcain.api-platform-new.loc
So far, so good, but there is one remaining problem, the admin container sends one correct request to
https://vulcain.api-platform-new.loc
in my setup, but the second one to
HTTP://vulcain.api-platform-new.loc:443/docs.jsonld
this seems to happen because the "link"-request header of the https://vulcain.api-platform-new.loc-Request says:
link: <http://vulcain.api-platform-new.loc:443/docs.jsonld>; rel="http://www.w3.org/ns/hydra/core#apiDocumentation"
(mind HTTP vs HTTPS)
which leads to "Something went wrong" because of:
fetchJsonLd.ts:14 Mixed Content: The page at 'https://admin.api-platform-new.loc/#/' was loaded over HTTPS, but requested an insecure resource 'http://vulcain.api-platform-new.loc:443/docs.jsonld'. This request has been blocked; the content must be served over HTTPS.
I spent days on all of this, and I would be really happy, if someone could tell me, how to fix the Response-Header-Link to use httpS!
