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
We use Caddy instead of Nginx to serve our firmware images. Somehow i am not able to get the firmware selector working with the default caddy directory index .
I am not sure if this is a configuration error on my side or if its just impossible due to hardcoded Regexps.
This config works with nginx but does not with Caddy:
// community prefix of the firmware imagescommunity_prefix: 'gluon-ffhl-',// firmware version regexversion_regex: '-([0-9]+.[0-9]+.[0-9]+([+-~][0-9]+)?)[.-]',
However it would be great to have this working with Caddy :)
The text was updated successfully, but these errors were encountered:
Caddy prefixes all file paths with ./ but in https://github.com/freifunk-darmstadt/gluon-firmware-selector/blob/master/app.js#L91 this is one of the patterns which are ignored. The easiest way is to simply remove the pattern from the list. I don't really see a reason to ignore paths including ./. But it might make sense to rewrite the loadDirectories function to better extract the file name even if they have any prefix.
As a workaround it should work to remove ./ from IGNORED_ELEMENTS and change community_prefix to ./gluon-ffhl-.
We use Caddy instead of Nginx to serve our firmware images. Somehow i am not able to get the firmware selector working with the default caddy directory index .
I am not sure if this is a configuration error on my side or if its just impossible due to hardcoded Regexps.
This config works with nginx but does not with Caddy:
However it would be great to have this working with Caddy :)
The text was updated successfully, but these errors were encountered: