Add favicon

This commit is contained in:
Oleg Lavrovsky 2017-05-11 09:52:45 +02:00
parent 2dca4aabef
commit 97bc4e207a
2 changed files with 7 additions and 4 deletions

View file

@ -19,8 +19,7 @@ server {
gzip_vary on;
location /static/ {
access_log off;
expires 36000;
access_log off; expires 36000;
alias {{ release_dir }}/static/;
add_header Cache-Control "public";
add_header Access-Control-Allow-Origin https://{{ domain }};
@ -28,11 +27,15 @@ server {
# Set a longer expiry for CACHE/, because the filenames are unique.
location /static/CACHE/ {
access_log off;
expires 864000;
access_log off; expires 864000;
alias {{ release_dir }}/static/CACHE/;
}
location /favicon.ico {
access_log off; expires 864000;
alias {{ release_dir }}/static/images/favicon.ico;
}
# Only serve /media/images by default, not e.g. original_images/.
location /media/images {
alias {{ release_dir }}/media/images;

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,022 B