ваше сообщение коммита
This commit is contained in:
@@ -141,6 +141,17 @@ http {
|
||||
add_header Permissions-Policy "geolocation=(), microphone=(), camera=()" always;
|
||||
}
|
||||
|
||||
# Pre-rendered blog pages (SEO optimization)
|
||||
location /blog {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri.html /blog/index.html /index.html;
|
||||
|
||||
# Заголовки для SEO
|
||||
add_header Cache-Control "public, max-age=3600";
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
}
|
||||
|
||||
# Статические файлы
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 1y;
|
||||
|
||||
Reference in New Issue
Block a user