V8-archive: Docker/API: URLs are always http when Proxied forwards

Created on 23 Dec 2019  Â·  4Comments  Â·  Source: directus/v8-archive

When using the Docker image, the Backend seems to use http instead of https when Proxied forward. This leads to images not being rendered as CORS will have a problem with this.

Maybe there already is this kind of feature(of forcing the baseurl to use https in the generation of links), but i can not find it.

I tried fiddling around with the storage object in the api config to no avail.
Screenshot_20191223_123116

This is most probably something the API needs to handle.

  • Using Nginx on Ubuntu
  • Directus v8.3
question api

Most helpful comment

Doesnt matter which one @benhaynes . This will happen in any installation
that has a load balancer in front. This is because we dont have a base-url
for directus config, and its also related to the thumbnail issue I created
today.

Setting a complete root url solves full urls but thumbs will remain broken

Em seg, 23 de dez de 2019 11:59, Ben Haynes notifications@github.com
escreveu:

Hey @WoLfulus https://github.com/WoLfulus @bjgajjar
https://github.com/bjgajjar — is this API or Docker?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/directus/api/issues/1595?email_source=notifications&email_token=AADEV3OXM35CQYVR3RB6M7LQ2DG6NA5CNFSM4J6UN3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHRJJXY#issuecomment-568497375,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADEV3PYNM4DWK3PBHZYQJ3Q2DG6NANCNFSM4J6UN3MA
.

All 4 comments

Hey @WoLfulus @bjgajjar — is this API or Docker?

Doesnt matter which one @benhaynes . This will happen in any installation
that has a load balancer in front. This is because we dont have a base-url
for directus config, and its also related to the thumbnail issue I created
today.

Setting a complete root url solves full urls but thumbs will remain broken

Em seg, 23 de dez de 2019 11:59, Ben Haynes notifications@github.com
escreveu:

Hey @WoLfulus https://github.com/WoLfulus @bjgajjar
https://github.com/bjgajjar — is this API or Docker?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/directus/api/issues/1595?email_source=notifications&email_token=AADEV3OXM35CQYVR3RB6M7LQ2DG6NA5CNFSM4J6UN3MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHRJJXY#issuecomment-568497375,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADEV3PYNM4DWK3PBHZYQJ3Q2DG6NANCNFSM4J6UN3MA
.

@WoLfulus Is my issue https://github.com/directus/api/issues/1569 related this?

@WoLfulus Is my issue #1569 related this?

Sounds like the same issue to me, as rijk said the root url/base url seems to not work as of right now. 🤔

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jwkellyiii picture jwkellyiii  Â·  3Comments

cdwmhcc picture cdwmhcc  Â·  3Comments

vuhrmeister picture vuhrmeister  Â·  3Comments

Nitwel picture Nitwel  Â·  3Comments

magikstm picture magikstm  Â·  3Comments