You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using shaarli in docker. I have a docker-compose file where I already have a letsencrypt docker image, with an nginx configured to reverse proxy all the other services I run:
In the Shaarli container, all resources are served on the root path: /, /index.php, etc. Your reverse proxy configuration attempts to serve Shaarli in a subpath /shaarli, thus:
PHP code is correcly interpreted as the Shaarli/Nginx configuration redirects all PHP requests to the PHP-FPM daemon
assets (CSS, images) are not found
For this to work you either need to:
serve Shaarli on its own domain
write a custom Docker image for Shaarli with an Nginx configuration that serves it in a subpath
(not recommended) configure Nginx to rewrite HTTP response bodies
I'd recommend 1. if you have your own domain and the ability to create sub-domains, else 2. which could be achieved by inheriting from the Shaarli Docker image and adding your own Nginx configuration.
Hello,
I'm using shaarli in docker. I have a docker-compose file where I already have a letsencrypt docker image, with an nginx configured to reverse proxy all the other services I run:
The nginx config file:
All the services work fine, but when it comes to shaarli, the site is displayed, but it cannot load the JS or the CSS files:
Loading failed for the <script> with source “https://mywebsite.com/shaarli/plugins/qrcode/shaarli-qrcode.js”. shaarli:370:1
Any idea what could be wrong here?
Thanks
The text was updated successfully, but these errors were encountered: