ваше сообщение коммита

This commit is contained in:
2026-04-22 13:41:56 +03:00
parent 1bf6b13246
commit ece395a60f
11 changed files with 444 additions and 164 deletions

View File

@@ -221,6 +221,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
add_header X-Robots-Tag "noindex, nofollow, noarchive, nosnippet, noimageindex" always;
proxy_redirect off;
proxy_http_version 1.1;
proxy_connect_timeout 120s;
@@ -253,6 +254,9 @@ http {
# Pre-rendered blog pages (SEO optimization)
location /blog {
if ($arg_page != "") {
return 301 /blog;
}
root /usr/share/nginx/html;
try_files $uri $uri.html /blog/index.html /index.html;
@@ -262,6 +266,13 @@ http {
add_header X-Frame-Options "SAMEORIGIN" always;
}
location = /content/published {
if ($arg_page != "") {
return 301 /content/published;
}
try_files $uri $uri/ /index.html;
}
# Статические файлы
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
expires 1y;