Hi,
First off, thanks for making this plugin. I took it as an inspiration to inject some code in my own plugin.
When I was working on my readme page, I also needed instruction to tell folks how to override the index, but I think what you were doing was:
- Copying the index at a specific version in time
- Storing that version outside of the container
- Allowing the container to write it.
It felt a bit complex, and it also meant that if a new version of index.html was released, it wouldn't be updated as the previous version stored outside of docker would override it. Updating it would also be quite complex to explain; we'd need to remove the volume mount, extract the file again, and re-add the mount whenever pulling new images.
I came up with a different strategy; since the file has a chmod of 644 and is owned by root (while the jellyfin server runs as another uid), it is possible to chmod the index from 644 to 666 whenever the container starts up; which allows jellyfin to update it without running as root.
https://github.com/UlysseM/jellyfin-plugin-httpauth#installation explains how to achieve it.
Feel free to update your readme!
Cheers
Hi,
First off, thanks for making this plugin. I took it as an inspiration to inject some code in my own plugin.
When I was working on my readme page, I also needed instruction to tell folks how to override the index, but I think what you were doing was:
It felt a bit complex, and it also meant that if a new version of index.html was released, it wouldn't be updated as the previous version stored outside of docker would override it. Updating it would also be quite complex to explain; we'd need to remove the volume mount, extract the file again, and re-add the mount whenever pulling new images.
I came up with a different strategy; since the file has a chmod of 644 and is owned by root (while the jellyfin server runs as another uid), it is possible to chmod the index from 644 to 666 whenever the container starts up; which allows jellyfin to update it without running as root.
https://github.com/UlysseM/jellyfin-plugin-httpauth#installation explains how to achieve it.
Feel free to update your readme!
Cheers