docker-taiga icon indicating copy to clipboard operation
docker-taiga copied to clipboard

Issue: Django admin using insecure assets

Open BloodyAltair opened this issue 6 years ago • 4 comments
trafficstars

Django admin using insecure assets https://domain.tld/static/admin/.... - TAIGA_SSL_BY_REVERSE_PROXY='True' take no effect Other services are working properly

BloodyAltair avatar Nov 23 '18 02:11 BloodyAltair

If you set TAIGA_SSL_BY_REVERSE_PROXY to true, then SSL isn't handled by the docker container, so you'd need to have a server in front of your taiga image to serve SSL.

If you are doing that, can you share details about your configuration to help investigate?

benhutchins avatar Jan 18 '19 19:01 benhutchins

I'm experiencing this issue too. I have a proxy in front of my taiga.

I think this is a duplicate of #28. Please have a look there for a workaround.

michzimny avatar Feb 08 '19 14:02 michzimny

Resolved adding this to local.py

MEDIA_URL = "https://yourtaigafronturl.com/media/"
STATIC_URL = "/static/"

fontenele avatar Jul 27 '19 01:07 fontenele

I just came across the same issue myself. I solved it by building a Docker image from the current master branch (the one on Docker Hub appears to not be up to date). You can find my image here: https://hub.docker.com/r/cmdjohnson/taiga/

I also updated Taiga to 4.2.11. If you previously ran benhutchins/taiga, then you'll have to perform some database migrations before using my image: I just

  • started Taiga as usual (same docker-compose.yml, except for the image name)
  • ran docker exec -it taiga bash
  • executed python manage.py migrate --noinput && python manage.py compilemessages && python manage.py collectstatic --noinput (as described here)
  • disconnected from the container (ctrl + D) and
  • restarted the container

Now everything works as expected, without any other changes.

cmd-johnson avatar Jul 29 '19 18:07 cmd-johnson