Files
ansible/roles/nginx/templates/vhosts/fav.libertus.eu.conf.j2
VC 5e17799aad
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s
♻: separate app from user data for shaarli
2025-03-09 13:15:51 +01:00

29 lines
564 B
Django/Jinja

## Shaarli
server {
{% include './templates/header.conf.j2' %}
root /var/www/fav.libertus.eu/;
index index.html index.htm index.php;
location ~* ^/(cache|data)/.* {
deny all;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
expires 2w;
log_not_found off;
}
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ index\.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(index.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}