2017-08-20 03:56:32 +00:00
|
|
|
server {
|
2019-07-31 13:12:12 +00:00
|
|
|
server_name example.com;
|
2017-08-20 03:56:32 +00:00
|
|
|
listen 80; # adding HTTPS configuration is highly recommended
|
2019-07-31 13:12:12 +00:00
|
|
|
root /usr/share/arsse/www; # adjust according to your installation path
|
2018-10-26 18:58:04 +00:00
|
|
|
|
2017-08-20 03:56:32 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2017-08-29 00:20:49 +00:00
|
|
|
|
2019-07-31 13:12:12 +00:00
|
|
|
location @arsse {
|
|
|
|
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # adjust according to your system configuration
|
|
|
|
fastcgi_pass_header Authorization; # required if the Arsse is to perform its own HTTP authentication
|
|
|
|
fastcgi_pass_request_body on;
|
|
|
|
fastcgi_pass_request_headers on;
|
|
|
|
fastcgi_intercept_errors off;
|
|
|
|
fastcgi_buffering off;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /usr/share/arsse/arsse.php; # adjust according to your installation path
|
|
|
|
fastcgi_param REQUEST_METHOD $request_method;
|
|
|
|
fastcgi_param CONTENT_TYPE $content_type;
|
|
|
|
fastcgi_param CONTENT_LENGTH $content_length;
|
|
|
|
fastcgi_param REQUEST_URI $uri;
|
2020-10-26 16:57:16 +00:00
|
|
|
fastcgi_param QUERY_STRING $query_string;
|
2019-07-31 13:12:12 +00:00
|
|
|
fastcgi_param HTTPS $https if_not_empty;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
2017-08-29 00:20:49 +00:00
|
|
|
}
|
2018-10-26 18:58:04 +00:00
|
|
|
|
2019-12-05 18:02:02 +00:00
|
|
|
# Nextcloud News protocol
|
2017-08-20 03:56:32 +00:00
|
|
|
location /index.php/apps/news/api {
|
2019-07-31 13:12:12 +00:00
|
|
|
try_files $uri @arsse;
|
2018-10-26 18:58:04 +00:00
|
|
|
|
2017-08-20 03:56:32 +00:00
|
|
|
location ~ ^/index\.php/apps/news/api/?$ {
|
2019-07-31 13:12:12 +00:00
|
|
|
# this path should not be behind HTTP authentication
|
|
|
|
try_files $uri @arsse;
|
2017-08-20 03:56:32 +00:00
|
|
|
}
|
|
|
|
}
|
2017-10-30 18:50:31 +00:00
|
|
|
|
|
|
|
# Tiny Tiny RSS protocol
|
|
|
|
location /tt-rss/api {
|
2019-07-31 13:12:12 +00:00
|
|
|
try_files $uri @arsse;
|
2017-10-30 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Tiny Tiny RSS feed icons
|
|
|
|
location /tt-rss/feed-icons/ {
|
2019-07-31 13:12:12 +00:00
|
|
|
try_files $uri @arsse;
|
2017-10-30 18:50:31 +00:00
|
|
|
}
|
|
|
|
|
2019-07-31 13:12:12 +00:00
|
|
|
# Tiny Tiny RSS special-feed icons; these are static files
|
2017-10-30 18:50:31 +00:00
|
|
|
location /tt-rss/images/ {
|
2019-07-31 13:12:12 +00:00
|
|
|
# this path should not be behind HTTP authentication
|
2017-11-27 18:05:08 +00:00
|
|
|
try_files $uri =404;
|
2017-10-30 18:50:31 +00:00
|
|
|
}
|
2019-07-25 23:23:35 +00:00
|
|
|
|
|
|
|
# Fever protocol
|
|
|
|
location /fever/ {
|
2019-07-31 13:12:12 +00:00
|
|
|
# this path should not be behind HTTP authentication
|
2019-08-24 19:23:52 +00:00
|
|
|
try_files $uri @arsse;
|
2019-07-25 23:23:35 +00:00
|
|
|
}
|
2021-02-08 02:38:16 +00:00
|
|
|
|
|
|
|
# Miniflux protocol
|
|
|
|
location /v1/ {
|
|
|
|
try_files $uri @arsse;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Miniflux version number
|
|
|
|
location /version {
|
|
|
|
# this path should not be behind HTTP authentication
|
|
|
|
try_files $uri @arsse;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Miniflux "health check"
|
|
|
|
location /healthcheck {
|
|
|
|
# this path should not be behind HTTP authentication
|
|
|
|
try_files $uri @arsse;
|
|
|
|
}
|
2018-10-26 18:58:04 +00:00
|
|
|
}
|