J. King
3 years ago
5 changed files with 63 additions and 26 deletions
@ -1,23 +0,0 @@ |
|||
# N.B. the unix:/var/run/php/php7.2-fpm.sock path used repeatedly below will |
|||
# vary from system to system and will be probably need to be changed |
|||
|
|||
<VirtualHost *:80> |
|||
ServerName localhost |
|||
# adjust according to your installation path |
|||
DocumentRoot /usr/share/arsse/www |
|||
|
|||
# adjust according to your installation path |
|||
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "/usr/share/arsse/arsse.php" |
|||
ProxyPreserveHost On |
|||
|
|||
# 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)|/v1/)"> |
|||
ProxyPass "unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/usr/share/arsse" |
|||
</LocationMatch> |
|||
|
|||
# Nextcloud News API detection, Fever API, Miniflux miscellanies |
|||
<LocationMatch "(/index\.php/apps/news/api/?$|/fever|/version$|/healthcheck$)"> |
|||
# these locations should not be behind HTTP authentication |
|||
ProxyPass "unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/usr/share/arsse" |
|||
</LocationMatch> |
|||
</VirtualHost> |
@ -0,0 +1,41 @@ |
|||
# Nextcloud News version list |
|||
<LocationMatch "^/index\.php/apps/news/api/?$"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</LocationMatch> |
|||
|
|||
# Nextcloud News protocol |
|||
<Location "/index.php/apps/news/api"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
|||
|
|||
# Tiny Tiny RSS protocol |
|||
<Location "/tt-rss/api"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
|||
|
|||
# Tiny Tiny RSS feed icons |
|||
<Location "/tt-rss/feed-icons"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
|||
|
|||
# NOTE: The DocumentRoot directive will dictate whether TT-RSS static images are served correctly |
|||
|
|||
# Fever protocol |
|||
<Location "/fever"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
|||
|
|||
# Miniflux protocol |
|||
<Location "/v1"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
|||
|
|||
# Miniflux version number |
|||
<Location "/version"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
|||
|
|||
# Miniflux "health check" |
|||
<Location "/healthcheck"> |
|||
ProxyPass ${ARSSE_PROXY} |
|||
</Location> |
@ -0,0 +1,10 @@ |
|||
Define ARSSE_CONF "/etc/arsse/apache/" |
|||
Define ARSSE_DATA "/usr/share/arsse/" |
|||
Define ARSSE_PROXY "unix:/var/run/php/arsse.sock|fcgi://localhost${ARSSE_DATA}" |
|||
|
|||
DocumentRoot "${ARSSE_DATA}www" |
|||
|
|||
ProxyPreserveHost On |
|||
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "${ARSSE_DATA}arsse.php" |
|||
|
|||
Include "${ARSSE_CONF}arsse-loc.conf" |
@ -0,0 +1,9 @@ |
|||
<VirtualHost *:443> |
|||
ServerName "news.example.com" |
|||
SSLEngine On |
|||
|
|||
SSLCertificateFile "/etc/letsencrypt/live/news.example.com/fullchain.pem" |
|||
SSLCertificateKeyFile "/etc/letsencrypt/live/news.example.com/privkey.pem" |
|||
|
|||
Include "/etc/arsse/apache/arsse.conf" |
|||
</VirtualHost> |
Loading…
Reference in new issue