Closed vmario89 closed 1 month ago
Hi @vmario89, Can you temporarily try commenting-out/removing this part of your nginx config?:
location /uploads {
autoindex off;
}
Then see if images start working. Remeber to reload/restart nginx after making the changes.
damn that simple snippet fixed it! I thank you very much!
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
When changing the production environment file .env to use secured image storage location, some images will never work:
before that migration from (local), everything was fine
i read the docs 10 times, searched 2 hours on the web, checked alot of stuff like
my nginx setup (redacted):
my .env:
i messed a lot with different options, disabled and enabled ...
what am i doing wrong? Bookstack never tries to use the storage/uploads/images dir. Instead it still looks for public/uploads/images
i tried this with different roles and users also. i also messed with php artisan commands to clear caches, etc.
Exact BookStack Version
v24.10
Log Content
php-fpm log is fine. no issues here.
nginx error log file:
2024/10/11 11:32:12 [error] 40924#40924: *473689 open() "/var/www/vhosts/wiki.redacted.org/public/uploads/images/user/2024-10/thumbs-80-80/2zlc5xeLywF24gfi-signet-256x256.png" failed (2: No such file or directory), client: 79.198.142.149, server: wiki.redacted.org, request: "GET /uploads/images/user/2024-10/thumbs-80-80/2zlc5xeLywF24gfi-signet-256x256.png HTTP/2.0", host: "wiki.redacted.org", referrer: "https://wiki.redacted.org/my-account/profile"
Hosting Environment