mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-23 08:34:56 +00:00
33 lines
No EOL
1,013 B
Nginx Configuration File
33 lines
No EOL
1,013 B
Nginx Configuration File
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;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
location /index.php/apps/news/api {
|
|
try_files $uri @arsse_auth;
|
|
|
|
location ~ ^/index\.php/apps/news/api/?$ {
|
|
try_files $uri @arsse_no_auth;
|
|
}
|
|
}
|
|
} |