Access to files in public via absolute URLs
-
There seems to have been a change in 1.5 that prevents access to things inside
nodebb/public
if the file is not known by NodeBB. I'm using Let's Encrypt for HTTPS certs and I have the.well-known
folder symlinked intopublic/.well-known
so that Certbot is able to make the verification by accessing a file from it e.g.http://domain.tld/.well-known/some-long-hashed-file-name
.How can I make NodeBB serve from that path without returning 404s?
I can work around it with Nginx proxy hackery, but I'd like this solved on NodeBB's side.
-
You could also just make a new location block that points to to .well-known location on your disk.
I have my main forums (https://gamingexodus.com) under
/var/www/nodebb/forums
, and then have the https://gamingexodus.com/.well-known/stuff under/var/www/.well-known