Files
silly-rss/deploy/nginx-silly-rss.conf
T
paraandClaude Sonnet 5 a48775557e Set actual domain (akbar.nohost.me) in deploy configs
/rss is already taken by FreshRSS on this domain, so the Python+cron
variant serves under /silly-rss/ instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 22:05:31 +02:00

35 lines
1.1 KiB
Plaintext

# Extrait nginx pour servir les flux RSS generes par silly_rss.py.
#
# Sur Yunohost, chaque domaine a son propre dossier de fragments de conf,
# automatiquement inclus par le nginx gere par Yunohost :
# /etc/nginx/conf.d/akbar.nohost.me.d/
#
# NB : le chemin /rss est deja pris par FreshRSS sur ce domaine, d'ou le
# choix de /silly-rss/ ci-dessous.
#
# Installation :
# 1. Copier ce fichier vers :
# /etc/nginx/conf.d/akbar.nohost.me.d/silly-rss.conf
# 2. Tester puis recharger nginx :
# sudo nginx -t && sudo systemctl reload nginx
#
# Les flux seront alors accessibles en :
# https://akbar.nohost.me/silly-rss/actualites.xml
# https://akbar.nohost.me/silly-rss/agenda.xml
location ^~ /silly-rss/ {
alias /var/www/silly-rss/;
autoindex off;
location ~ \.xml$ {
add_header Content-Type "application/rss+xml; charset=utf-8";
add_header Cache-Control "public, max-age=300";
}
# Bloque tout ce qui n'est pas un flux XML (script, log, etc.)
location ~ \.(py|log|pyc)$ {
deny all;
return 404;
}
}