Skip to content

Commit

Permalink
feat: Add support for FreshAPI Google Reader API Plugin (#527)
Browse files Browse the repository at this point in the history
* Add proper PATH_INFO support

* Add FreshAPI to plugins list
  • Loading branch information
eric-pierce authored Sep 23, 2024
1 parent 3317abc commit bd30be6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ RUN mkdir auth_oidc && \
curl -sL https://gitlab.tt-rss.org/tt-rss/plugins/ttrss-auth-oidc/-/archive/master/ttrss-auth-oidc-master.tar.gz | \
tar xzvpf - --strip-components=1 -C auth_oidc ttrss-auth-oidc-master

## FreshAPI
RUN mkdir /var/www/plugins/freshapi && \
curl -sL https://github.com/eric-pierce/freshapi/archive/master.tar.gz | \
tar xzvpf - --strip-components=1 -C /var/www/plugins/freshapi freshapi-master

# Download themes
WORKDIR /var/www/themes.local

Expand Down
9 changes: 9 additions & 0 deletions src/ttrss.nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,14 @@ http {
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /plugins\.local/.*/api/.*\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
}
}

0 comments on commit bd30be6

Please sign in to comment.