basic config

This commit is contained in:
Mathieu Bruyen
2018-12-13 13:55:19 +01:00
parent 2c02fcce22
commit a709246496
3 changed files with 56 additions and 36 deletions

18
nginx.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
listen 80;
root /var/lib/tt-rss;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.html /index.php?$args =404;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}