fix: add favicon, reduce CSS/JS cache to 1h for faster updates
CI/CD / deploy (push) Failing after 36s Details

SVG favicon with tree logo on dark green background. Split nginx
cache rules: images stay 30d immutable, CSS/JS reduced to 1h with
must-revalidate so deploys are visible immediately.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-13 15:50:55 -04:00
parent 00da582240
commit 60ca3b1a4f
4 changed files with 25 additions and 1 deletions

View File

@ -3,5 +3,6 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY index.html /usr/share/nginx/html/
COPY styles.css /usr/share/nginx/html/
COPY script.js /usr/share/nginx/html/
COPY favicon.svg /usr/share/nginx/html/
COPY images/ /usr/share/nginx/html/images/
EXPOSE 80

17
favicon.svg Normal file
View File

@ -0,0 +1,17 @@
<svg viewBox="0 0 180 180" xmlns="http://www.w3.org/2000/svg">
<rect width="180" height="180" rx="20" fill="#1F3A2E"/>
<g transform="translate(0, -5)">
<path d="M90 140 C88 120, 85 100, 88 80 C90 65, 90 50, 90 40" fill="none" stroke="#B89A5B" stroke-width="3" stroke-linecap="round"/>
<path d="M88 95 C75 85, 55 80, 45 70" fill="none" stroke="#B89A5B" stroke-width="2.5" stroke-linecap="round"/>
<path d="M45 70 C40 60, 42 48, 52 45 C62 42, 65 52, 60 62 C55 72, 48 72, 45 70Z" fill="none" stroke="#B89A5B" stroke-width="2.2"/>
<path d="M90 95 C103 85, 123 80, 133 70" fill="none" stroke="#B89A5B" stroke-width="2.5" stroke-linecap="round"/>
<path d="M133 70 C138 60, 136 48, 126 45 C116 42, 113 52, 118 62 C123 72, 130 72, 133 70Z" fill="none" stroke="#B89A5B" stroke-width="2.2"/>
<path d="M89 75 C78 65, 62 58, 55 48" fill="none" stroke="#B89A5B" stroke-width="2.5" stroke-linecap="round"/>
<path d="M55 48 C48 38, 50 26, 60 23 C70 20, 72 30, 68 40 C64 48, 57 50, 55 48Z" fill="none" stroke="#B89A5B" stroke-width="2.2"/>
<path d="M90 75 C101 65, 116 58, 123 48" fill="none" stroke="#B89A5B" stroke-width="2.5" stroke-linecap="round"/>
<path d="M123 48 C130 38, 128 26, 118 23 C108 20, 106 30, 110 40 C114 48, 121 50, 123 48Z" fill="none" stroke="#B89A5B" stroke-width="2.2"/>
<path d="M90 40 C90 28, 82 12, 80 2 C78 12, 90 8, 98 2 C96 12, 90 28, 90 40Z" fill="none" stroke="#B89A5B" stroke-width="2.2"/>
<path d="M40 152 C55 145, 70 158, 90 152 C110 145, 125 158, 140 152" fill="none" stroke="#B89A5B" stroke-width="2.5" stroke-linecap="round"/>
<path d="M50 162 C63 156, 75 166, 90 162 C105 156, 117 166, 130 162" fill="none" stroke="#B89A5B" stroke-width="2.2" stroke-linecap="round"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tino Andri | Heilung, Natur & Bewusstsein | Scuol, Engadin</title>
<meta name="description" content="Tino Andri bietet ganzheitliche Heilarbeit, Elementebehandlungen und Bewusstseinsarbeit in Scuol, Engadin. Sanfte Impulse, die tief bewegen.">
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;700&display=swap" rel="stylesheet">

View File

@ -8,11 +8,16 @@ server {
try_files $uri $uri/ /index.html;
}
location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|webp)$ {
location ~* \.(jpg|jpeg|png|gif|ico|svg|webp)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
location ~* \.(css|js)$ {
expires 1h;
add_header Cache-Control "public, must-revalidate";
}
gzip on;
gzip_types text/plain text/css application/javascript image/svg+xml;
gzip_min_length 256;