bourvill on main
Prepare 6.2.0 (compare)
bourvill on reading-speed-from-config
bourvill on main
Reading time based on user conf… (compare)
bourvill on reading-speed-from-config
Add doc (compare)
dependabot[bot] on gradle
site-credentials-secret-key.txt
about?
[root@archlinux ~]# cd /etc/nginx/
[root@archlinux nginx]# cd sites-enabled
[root@archlinux sites-enabled]# cat read.conf
server {
listen 80;
server_name read.malacology.net;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name read.malacology.net;
root /usr/share/webapps/wallabag;
ssl_certificate /etc/nginx/web_ssl/read/1_read.malacology.net_bundle.crt;
ssl_certificate_key /etc/nginx/web_ssl/read/2_read.malacology.net.key;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
location / {
# try to serve file directly, fallback to app.php
try_files $uri /app.php$is_args$args;
}
location ~ ^/app\.php(/|$) {
# if, for some reason, you are still using PHP 5,
# then replace /run/php/php7.0 by /var/run/php5
fastcgi_pass unix:/run/php74-fpm/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
# When you are using symlinks to link the document root to the
# current version of your application, you should pass the real
# application path instead of the path to the symlink to PHP
# FPM.
# Otherwise, PHP's OPcache may not properly detect changes to
# your PHP files (see https://github.com/zendtech/ZendOptimizerPlus/issues/126
# for more information).
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
# Prevents URIs that include the front controller. This will 404:
# http://domain.tld/app.php/some-path
# Remove the internal directive to allow URIs like this
internal;
}
# return 404 for all other php files not matching the front controller
# this prevents access to other php files you don't want to be accessible.
location ~ \.php$ {
return 404;
}
}
[root@archlinux sites-enabled]# cat rss.conf
server {
listen 80;
server_name rss.malacology.net;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name rss.malacology.net;
root /usr/share/webapps/freshrss;
ssl_certificate /etc/nginx/web_ssl/rss/1_rss.malacology.net_bundle.crt;
ssl_certificate_key /etc/nginx/web_ssl/rss/2_rss.malacology.net.key;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4;
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
# 404
try_files $fastcgi_script_name =404;
# default fastcgi_params
include fastcgi_params;
# fastcgi settings
fastcgi_pass unix:/run/php74-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$base/:/usr/lib/php/:/tmp/";
}
}
2021/07/25 23:19:10 [error] 15447#15447: *20 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/lib/wallabag/var/logs/prod.log" could not be opened in append mode: failed to open stream: Permission denied in /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:110
Stack trace:
#0 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\StreamHandler->write()
#1 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php(59): Monolog\Handler\AbstractProcessingHandler->handle()
#2 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php(92): Monolog\Handler\AbstractHandler->handleBatch()
#3 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php(113): Monolog\Handler\FingersCrossedHandler->activate()
#4 /usr/share/webapps/wallabag/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handl" while reading response header from upstream, client: 120.192.37.36, server: read.malacology.net, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/run/php74-fpm/php-fpm.sock:", host: "read.malacology.net"