1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00
Arsse/dist/nginx.conf

51 lines
1.4 KiB
Nginx Configuration File
Raw Normal View History

server {
server_name news.example.com;
listen 80; # adding HTTPS configuration is highly recommended
# redirect to HTTPS, if desired
#if ($https != "on") {rewrite ^ https://$host$request_uri;}
# the userPreAuth setting should be enabled if the Web server is handling authentication
#auth_basic "Advanced RSS Environment";
root /usr/share/arsse/www;
index index.html;
location / {
try_files $uri $uri/ =404;
}
2017-08-29 00:20:49 +00:00
location @arsse_auth {
# the userPreAuth setting should be enabled if the Web server is handling authentication
#auth_basic "Advanced RSS Environment";
include /usr/share/arsse/dist/nginx-fcgi.conf;
}
location @arsse_no_auth {
auth_basic off;
include /usr/share/arsse/dist/nginx-fcgi.conf;
}
2017-10-30 18:50:31 +00:00
# NextCloud News protocol
location /index.php/apps/news/api {
2017-08-29 00:20:49 +00:00
try_files $uri @arsse_auth;
location ~ ^/index\.php/apps/news/api/?$ {
2017-08-29 00:20:49 +00:00
try_files $uri @arsse_no_auth;
}
}
2017-10-30 18:50:31 +00:00
# Tiny Tiny RSS protocol
location /tt-rss/api {
try_files $uri @arsse_no_auth;
}
# Tiny Tiny RSS feed icons
location /tt-rss/feed-icons/ {
try_files $uri @arsse_no_auth;
}
# Tiny Tiny RSS special-feed icons
location /tt-rss/images/ {
auth_basic off;
2017-10-30 18:50:31 +00:00
root /usr/share/arsse/www;
try_files $uri =404;
2017-10-30 18:50:31 +00:00
}
}