This patch globally improves Apaxy CSS theme, and adds a dark mode (media query: `prefers-color-scheme`).
It also fixes some indentation issues the style-sheet was reading.
Co-authored-by: NAERNON <naernon@icloud.com>
This patch moves `apaxy/favicon.ico` to `apaxy/theme/favicon.ico` not to pollute the indexed page root.
The new favicon location is indicated through an HTML tag with the help of the `IndexHeadInsert` Apache directive, to automatically deal with processed pages.
Parameters can now be set in a config file or on the cli.
This change was made mandatory as bash cannot make a difference between a null and an undefined value.
The script apaxy-configure.sh can now be launched from anywhere in the system, and not only from the `apaxy` directory.
This is very useful when the context is managed by another tool, such as ansible.
Version is bumped to 2.0.0 as we are switching apache directive from AddIcon to AddIconByType, which is a huge change, potentially a breaking change for users.
We want apaxy to need as few dependencies as possible, and even less external dependencies (because we have control over external dependencies). This commit removes dependency to font Open Sans.
As pointed by nodisc in issue #59, there are some advantages in removing this dependency: no cross-site requests, no leaking of HTTP referers to font provider, works on LAN-only setups, no dependency on an external service.
fix#59
Huge rewrite of .htaccess file so that AddIcon are rewritten to AddIconByType for most of the file. Icon are now displayed on a real media type basis <hich is more reliable that file extension.
More extensions are now supported.
File extensions that are not associated to a media type are still using the old AddIcon syntax.
The new Dockerfile is based on a smaller image (httpd instead of php) and is more secure due to a smaller attack surface. It also comes with a docker-compose configuration and offers some options.
The Dockerfile is using a multi-stage build, and it using the brand new apaxy install script. It is also running as non root so the image can run in a secured container cluster.