Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Issue: Django admin using insecure assets #69

Open
BloodyAltair opened this issue Nov 23, 2018 · 4 comments
Open

Issue: Django admin using insecure assets #69

BloodyAltair opened this issue Nov 23, 2018 · 4 comments

Comments

@BloodyAltair
Copy link

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

@benhutchins
Copy link
Owner

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?

@michzimny
Copy link

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.

@fontenele
Copy link

Resolved adding this to local.py

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

@cmd-johnson
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants