J. King
3 years ago
16 changed files with 59 additions and 135 deletions
@ -1,17 +0,0 @@ |
|||
root /usr/share/webapps/arsse/www; |
|||
|
|||
location @arsse { |
|||
# HTTP authentication may be enabled for this location, though this may impact some features |
|||
fastcgi_pass unix:/run/php-fpm/arsse.sock; |
|||
fastcgi_param SCRIPT_FILENAME /usr/share/webapps/arsse/arsse.php; |
|||
include /etc/webapps/arsse/nginx/arsse-fcgi.conf; |
|||
} |
|||
|
|||
location @arsse_public { |
|||
# HTTP authentication should not be enabled for this location |
|||
fastcgi_pass unix:/run/php-fpm/arsse.sock; |
|||
fastcgi_param SCRIPT_FILENAME /usr/share/webapps/arsse/arsse.php; |
|||
include /etc/webapps/arsse/nginx/arsse-fcgi.conf; |
|||
} |
|||
|
|||
include /etc/webapps/arsse/nginx/arsse-loc.conf; |
@ -1 +0,0 @@ |
|||
u arsse - "The Arsse" /usr/lib/arsse - |
@ -1 +0,0 @@ |
|||
z /etc/webapps/arsse/config.php - root arsse - - |
@ -1,15 +0,0 @@ |
|||
[Unit] |
|||
Description=The Arsse feed fetching service |
|||
After=network.target mysql.service postgresql.service |
|||
|
|||
[Service] |
|||
User=www-data |
|||
Group=www-data |
|||
WorkingDirectory=/usr/share/arsse |
|||
Type=simple |
|||
StandardOutput=null |
|||
StandardError=syslog |
|||
ExecStart=/usr/bin/env php /usr/share/arsse/arsse.php daemon |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target |
@ -1,75 +0,0 @@ |
|||
server { |
|||
server_name example.com; |
|||
listen 80; # adding HTTPS configuration is highly recommended |
|||
root /usr/share/arsse/www; # adjust according to your installation path |
|||
|
|||
location / { |
|||
try_files $uri $uri/ =404; |
|||
} |
|||
|
|||
location @arsse { |
|||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; # adjust according to your system configuration |
|||
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; # adjust according to your installation path |
|||
fastcgi_param REQUEST_METHOD $request_method; |
|||
fastcgi_param CONTENT_TYPE $content_type; |
|||
fastcgi_param CONTENT_LENGTH $content_length; |
|||
fastcgi_param REQUEST_URI $uri; |
|||
fastcgi_param QUERY_STRING $query_string; |
|||
fastcgi_param HTTPS $https if_not_empty; |
|||
fastcgi_param REMOTE_USER $remote_user; |
|||
} |
|||
|
|||
# Nextcloud News protocol |
|||
location /index.php/apps/news/api { |
|||
try_files $uri @arsse; |
|||
|
|||
location ~ ^/index\.php/apps/news/api/?$ { |
|||
# this path should not be behind HTTP authentication |
|||
try_files $uri @arsse; |
|||
} |
|||
} |
|||
|
|||
# Tiny Tiny RSS protocol |
|||
location /tt-rss/api { |
|||
try_files $uri @arsse; |
|||
} |
|||
|
|||
# Tiny Tiny RSS feed icons |
|||
location /tt-rss/feed-icons/ { |
|||
try_files $uri @arsse; |
|||
} |
|||
|
|||
# Tiny Tiny RSS special-feed icons; these are static files |
|||
location /tt-rss/images/ { |
|||
# this path should not be behind HTTP authentication |
|||
try_files $uri =404; |
|||
} |
|||
|
|||
# Fever protocol |
|||
location /fever/ { |
|||
# this path should not be behind HTTP authentication |
|||
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; |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
root /usr/share/arsse/www; |
|||
|
|||
location @arsse { |
|||
# HTTP authentication may be enabled for this location, though this may impact some features |
|||
fastcgi_pass unix:/var/run/php/arsse.sock; |
|||
fastcgi_param SCRIPT_FILENAME /usr/share/arsse/arsse.php; |
|||
include /etc/arsse/nginx/arsse-fcgi.conf; |
|||
} |
|||
|
|||
location @arsse_public { |
|||
# HTTP authentication should not be enabled for this location |
|||
fastcgi_pass unix:/var/run/php/arsse.sock; |
|||
fastcgi_param SCRIPT_FILENAME /usr/share/arsse/arsse.php; |
|||
include /etc/arsse/nginx/arsse-fcgi.conf; |
|||
} |
|||
|
|||
include /etc/arsse/nginx/arsse-loc.conf; |
@ -1,9 +1,9 @@ |
|||
[arsse] |
|||
user = arsse |
|||
group = arsse |
|||
listen = /run/php-fpm/arsse.sock |
|||
listen = /var/run/php/arsse.sock |
|||
listen.owner = arsse |
|||
listen.group = http |
|||
listen.group = www-data |
|||
pm = dynamic |
|||
pm.max_children = 5 |
|||
pm.start_servers = 2 |
@ -0,0 +1 @@ |
|||
u arsse - "The Arsse" /var/lib/arsse - |
@ -0,0 +1 @@ |
|||
z /etc/arsse/config.php - root arsse - - |
Loading…
Reference in new issue