Closed ballinger closed 3 months ago
/etc/nginx/conf.d/domain.org.d/tandoor.conf
location /media/ {
alias /var/www/tandoor/mediafiles;
default install dir -> `/var/www/tandoor/source/mediafiles`
# user rights
changing the media dir + content to tandoor:www-data doesnt help
changing the systemctl usergroup to www-data doesnt help
# firefox console
GET
https://domain.org/media/recipes/f836c696-dfe8-4c1b-bed1-4e14f3f10231_138.jpg
[HTTP/1.1 404 0ms]
nano /var/www/tandoor/.env
# If mediafiles are stored at a different location uncomment and change accordingly, MUST END IN /
# this is not required if you are just using a subfolder
# This can either be a relative path from the applications base path or the url of an external host
# MEDIA_URL=/media/
MEDIA_URL=https://domain.org:8097/source/media/
I've got the same problem and tried messing with the Recipes.conf.
But no success.
closing with #80
Describe the bug
media files probably have the wrong user credentials / pictures and media are not displayed
Context
chown tandoor:www-data mediafiles/ -R
does not work all new files, inside mediafiles/ - created from the web interface sets the user to tandoor:tandoorSteps to reproduce
Expected behavior
show pictures
Logs
no logs under /var/log/tandoor