2017-08-19 23:56:32 -04:00
|
|
|
server {
|
2019-07-31 09:12:12 -04:00
|
|
|
server_name example.com;
|
2017-08-19 23:56:32 -04:00
|
|
|
listen 80; # adding HTTPS configuration is highly recommended
|
2019-07-31 09:12:12 -04:00
|
|
|
root /usr/share/arsse/www; # adjust according to your installation path
|
2018-10-26 14:58:04 -04:00
|
|
|
|
2017-08-19 23:56:32 -04:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2017-08-28 20:20:49 -04:00
|
|
|
|
2019-07-31 09:12:12 -04: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 12:57:16 -04:00
|
|
|
fastcgi_param QUERY_STRING $query_string;
|
2019-07-31 09:12:12 -04:00
|
|
|
fastcgi_param HTTPS $https if_not_empty;
|
|
|
|
fastcgi_param REMOTE_USER $remote_user;
|
2017-08-28 20:20:49 -04:00
|
|
|
}
|
2018-10-26 14:58:04 -04:00
|
|
|
|
2019-12-05 13:02:02 -05:00
|
|
|
# Nextcloud News protocol
|
2017-08-19 23:56:32 -04:00
|
|
|
location /index.php/apps/news/api {
|
2019-07-31 09:12:12 -04:00
|
|
|
try_files $uri @arsse;
|
2018-10-26 14:58:04 -04:00
|
|
|
|
2017-08-19 23:56:32 -04:00
|
|
|
location ~ ^/index\.php/apps/news/api/?$ {
|
2019-07-31 09:12:12 -04:00
|
|
|
# this path should not be behind HTTP authentication
|
|
|
|
try_files $uri @arsse;
|
2017-08-19 23:56:32 -04:00
|
|
|
}
|
|
|
|
}
|
2017-10-30 14:50:31 -04:00
|
|
|
|
|
|
|
# Tiny Tiny RSS protocol
|
|
|
|
location /tt-rss/api {
|
2019-07-31 09:12:12 -04:00
|
|
|
try_files $uri @arsse;
|
2017-10-30 14:50:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# Tiny Tiny RSS feed icons
|
|
|
|
location /tt-rss/feed-icons/ {
|
2019-07-31 09:12:12 -04:00
|
|
|
try_files $uri @arsse;
|
2017-10-30 14:50:31 -04:00
|
|
|
}
|
|
|
|
|
2019-07-31 09:12:12 -04:00
|
|
|
# Tiny Tiny RSS special-feed icons; these are static files
|
2017-10-30 14:50:31 -04:00
|
|
|
location /tt-rss/images/ {
|
2019-07-31 09:12:12 -04:00
|
|
|
# this path should not be behind HTTP authentication
|
2017-11-27 13:05:08 -05:00
|
|
|
try_files $uri =404;
|
2017-10-30 14:50:31 -04:00
|
|
|
}
|
2019-07-25 19:23:35 -04:00
|
|
|
|
|
|
|
# Fever protocol
|
|
|
|
location /fever/ {
|
2019-07-31 09:12:12 -04:00
|
|
|
# this path should not be behind HTTP authentication
|
2019-08-24 15:23:52 -04:00
|
|
|
try_files $uri @arsse;
|
2019-07-25 19:23:35 -04:00
|
|
|
}
|
2018-10-26 14:58:04 -04:00
|
|
|
}
|