ipedrazas / taiga-docker

Docker scripts to run your own Taiga
Apache License 2.0
324 stars 115 forks source link

The media url 404 #54

Open naivewen opened 7 years ago

naivewen commented 7 years ago

How can I make the right conf of the media? When I access the media,the nginx shows 404. But the static url is right!

This is the part of local.py

MEDIA_ROOT = os.path.join(BASE_DIR, "media")

MEDIA_ROOT = '/home/taiga/media'

STATIC_ROOT = os.path.join(BASE_DIR, "static")

STATIC_ROOT = '/home/taiga/static'

And the default.conf

# Static files
location /static {
    alias /taiga/static;
}

# Media files
location /media {
    alias /taiga/media;
}

How can I fix the error? Regards.

naivewen commented 7 years ago

OH! I find the problem that it doesn't have the media volumes ! How can I add the volumes without the dockerFile?