Commit e3173fae authored by ale's avatar ale

Add a favicon on all managed sites

This just intercepts the /favicon.ico URL at the nginx level, if the
site defines its own (at a different URL), that one will be used instead.
parent 95a07988
Pipeline #3334 passed with stage
in 4 minutes and 55 seconds
......@@ -143,6 +143,11 @@
src: index.html.j2
dest: /var/www/html/index.html
- name: Install favicon
copy:
src: favicon.ico
dest: /var/www/html/favicon.ico
# Create the cache directory.
- file:
path: /var/cache/nginx
......
......@@ -36,6 +36,11 @@ server {
include /etc/nginx/snippets/site-limits.conf;
location = /favicon.ico {
expires 15d;
root /var/www/html;
}
{#
When multiple locations are defined, we must make sure
that / comes last.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment