docs(CLAUDE.md) + fix(nginx): application/rss+xml для feed.xml
All checks were successful
Deploy to web.hhivp.com / deploy (push) Successful in 33s
All checks were successful
Deploy to web.hhivp.com / deploy (push) Successful in 33s
- CLAUDE.md проекта: сервер, cutover-инструкция, откат за минуту,
бэкап-пути, стек, структура, RSS-конфигурация под IPB, аналитика+consent,
CI/CD, локальная разработка
- nginx.conf: types{} default_type application/rss+xml — теперь Content-Type
правильный для RSS Importer (раньше отдавалось text/xml из дефолтного MIME)
This commit is contained in:
@@ -36,15 +36,17 @@ server {
|
||||
# ────────────────────────────────────────────────────────────────
|
||||
# MIME для RSS-фидов и текстовых служебных файлов
|
||||
# ────────────────────────────────────────────────────────────────
|
||||
# types{} перебивает дефолтный mime, чтобы Content-Type был application/rss+xml,
|
||||
# а не text/xml (так RSS Importers в IPB точно поймут как RSS-feed).
|
||||
location = /feed.xml {
|
||||
default_type application/rss+xml;
|
||||
types { } default_type application/rss+xml;
|
||||
charset utf-8;
|
||||
try_files /feed.xml =404;
|
||||
expires 5m;
|
||||
add_header Cache-Control "public, max-age=300, must-revalidate";
|
||||
}
|
||||
location ~ ^/category/[^/]+/feed\.xml$ {
|
||||
default_type application/rss+xml;
|
||||
types { } default_type application/rss+xml;
|
||||
charset utf-8;
|
||||
expires 5m;
|
||||
add_header Cache-Control "public, max-age=300, must-revalidate";
|
||||
|
||||
Reference in New Issue
Block a user