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
J. King cc2296522c More changes in anticipation of a release:
- 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 work
2017-08-19 23:56:32 -04:00

24 lines
No EOL
803 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 /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;
}
}
}