Delivery of local (style) files
Every grouprise instance uses some local files for its branding.
See the related setting (example):
branding:
logo_backdrop: /theme/logo_white.svg
logo_favicon: /theme/favicon.ico
logo_square: /theme/logo_large.svg
logo_text: /theme/logo_text.svg
Previously people could just manually place these files below /var/lib/grouprise/media/
and use /stadt/media/
as the URL path.
But due to the recent shift to permission checks for uploaded files, this is not possible anymore (only proper file objects are delivered from the MEDIA_ROOT
directory).
I think, we have the following options for solving this issue:
- A) mention in the documentation, that
location /-/site/theme/ { root /etc/grouprise/theme/; }
should be added to the localnginx
site configuration (and files should be placed below/etc/grouprise/theme/
) - B) configure the above settings by default via the Debian package
- C) upload the relevant files into the public space of the maintainer's group of the grouprise instance (and use links to these uploaded files in the configuration file)
- this encourages the principle of self-management, since even the site styling can be managed by regular users
- this would force Django to be involved with every request for these style files
- we need to explain this procedure to users/maintainers
For now we use a variation of (A) in most instances.
What do you think?
If we pick (A) or (B): which URL path would be suitable?