Browse Source
- Don't load a config (and possibly create a database) in CLI if a configuration is not required - Removed the 'dbSchemaBase' config option, which is really a testing hack - Added sample Nginx configuration - Fixed bug in REST handler - Readme still needs workmicrosub
J. King
7 years ago
12 changed files with 86 additions and 42 deletions
@ -0,0 +1,12 @@ |
|||||
|
fastcgi_pass php; # PHP is assumed to already be configured for FastCGI operation |
||||
|
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; |
||||
|
fastcgi_param REQUEST_METHOD $request_method; |
||||
|
fastcgi_param CONTENT_TYPE $content_type; |
||||
|
fastcgi_param CONTENT_LENGTH $content_length; |
||||
|
fastcgi_param REQUEST_URI $request_uri; |
||||
|
fastcgi_param HTTPS $https if_not_empty; |
@ -0,0 +1,24 @@ |
|||||
|
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 /index.php/apps/news/api { |
||||
|
include /usr/share/arsse/dist/nginx-fcgi.conf; |
||||
|
|
||||
|
location ~ ^/index\.php/apps/news/api/?$ { |
||||
|
auth_basic off; # the NextCloud News API version enumerator does not require authentication |
||||
|
include /usr/share/arsse/dist/nginx-fcgi.conf; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
@ -1,2 +0,0 @@ |
|||||
<?php |
|
||||
require_once __DIR__.DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."arsse.php"; |
|
Loading…
Reference in new issue