Files
ansible/roles/nginx/templates/vhosts/rss.libertus.eu.conf.j2
2025-03-09 15:01:51 +01:00

23 lines
541 B
Django/Jinja

server {
{% include './templates/header.conf.j2' %}
root /var/www/rss.libertus.eu/p;
index index.html index.htm index.php;
location ~ \.(js|css|png|jpg|jpeg|gif|svg|svgz)$ {
expires 2w;
log_not_found off;
}
location ~ ^/(api/greader).php(/.*)+ {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
include fastcgi_params;
}
location ~ \.php$ {
try_files $uri $uri/ =404;
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
include fastcgi_params;
}
}