1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 09:02:41 +00:00
Arsse/dist/nginx.conf

58 lines
1.8 KiB
Nginx Configuration File
Raw Normal View History

server {
2019-07-31 13:12:12 +00:00
server_name example.com;
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
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;
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
2017-10-30 18:50:31 +00:00
# NextCloud News protocol
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
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-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
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
try_files $uri @arsse;
2019-07-25 23:23:35 +00:00
}
2018-10-26 18:58:04 +00:00
}