mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Update sample Web server configuration
This commit is contained in:
parent
eae0ba4b68
commit
f2e5d567ec
2 changed files with 21 additions and 4 deletions
8
dist/apache.conf
vendored
8
dist/apache.conf
vendored
|
@ -10,13 +10,13 @@
|
||||||
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "/usr/share/arsse/arsse.php"
|
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "/usr/share/arsse/arsse.php"
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
|
|
||||||
# Nextcloud News v1.2, Tiny Tiny RSS API, TT-RSS newsfeed icons
|
# Nextcloud News v1.2, Tiny Tiny RSS API, TT-RSS newsfeed icons, Miniflux API
|
||||||
<LocationMatch "(/index\.php/apps/news/api/?.+|/tt-rss/(api|feed-icons))">
|
<LocationMatch "(/index\.php/apps/news/api/?.+|/tt-rss/(api|feed-icons)|/v1/)">
|
||||||
ProxyPass "unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/usr/share/arsse"
|
ProxyPass "unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/usr/share/arsse"
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
||||||
# Nextcloud News API detection, Fever API
|
# Nextcloud News API detection, Fever API, Miniflux miscellanies
|
||||||
<LocationMatch "(/index\.php/apps/news/api/?$|/fever)">
|
<LocationMatch "(/index\.php/apps/news/api/?$|/fever|/version$|/healthcheck$)">
|
||||||
# these locations should not be behind HTTP authentication
|
# these locations should not be behind HTTP authentication
|
||||||
ProxyPass "unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/usr/share/arsse"
|
ProxyPass "unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/usr/share/arsse"
|
||||||
</LocationMatch>
|
</LocationMatch>
|
||||||
|
|
17
dist/nginx.conf
vendored
17
dist/nginx.conf
vendored
|
@ -55,4 +55,21 @@ server {
|
||||||
# this path should not be behind HTTP authentication
|
# this path should not be behind HTTP authentication
|
||||||
try_files $uri @arsse;
|
try_files $uri @arsse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Miniflux protocol
|
||||||
|
location /v1/ {
|
||||||
|
try_files $uri @arsse;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Miniflux version number
|
||||||
|
location /version {
|
||||||
|
# this path should not be behind HTTP authentication
|
||||||
|
try_files $uri @arsse;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Miniflux "health check"
|
||||||
|
location /healthcheck {
|
||||||
|
# this path should not be behind HTTP authentication
|
||||||
|
try_files $uri @arsse;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue