move nginx conf folder

This commit is contained in:
Dryusdan 2017-10-30 12:39:58 +01:00
parent 37a16442d3
commit 4afacf9caa
3 changed files with 9 additions and 9 deletions

View File

@ -23,8 +23,4 @@ VOLUME /freshrss/data /php/session
EXPOSE 8080
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>" \
description="A free, self-hostable aggregator" \
version="FreshRSS ${FRESHRSS_VER}"
CMD ["run.sh"]

View File

@ -20,14 +20,18 @@ server {
deny all;
}
location / {
try_files $uri $uri/ /index.php;
}
location / {
try_files $uri $uri/ index.php;
}
location ~ \.php$ {
location ~ ^.+?\.php(/.*)?$ {
fastcgi_index index.php;
fastcgi_pass unix:/php/run/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /nginx/conf/fastcgi_params;
}
}
}