mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 08:37:30 +02:00
Docker from Debian base image (#3500)
* Docker from Debian base image * Fix expose https://github.com/RSS-Bridge/rss-bridge/discussions/3234 * Re-fix better logs https://github.com/RSS-Bridge/rss-bridge/pull/3333 * Update to Debian 12 Bookworm instead of Debian 10 Buster * Use Debian packaging instead of having to keep track of and manually install -dev libraries, and with LTS support * Update to PHP 8.2 instead of PHP 8.0 * Fix php.ini location * Minor order changes To optimise caching
This commit is contained in:
committed by
GitHub
parent
4323a11667
commit
0175e13712
@@ -2,8 +2,8 @@ server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
root /app;
|
||||
access_log /dev/stdout;
|
||||
error_log /dev/stderr;
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
index index.php;
|
||||
|
||||
location ~ /(\.|vendor|tests) {
|
||||
@@ -13,6 +13,6 @@ server {
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||
}
|
||||
}
|
||||
|
18
config/php-fpm.conf
Normal file
18
config/php-fpm.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
; Inspired by https://github.com/docker-library/php/blob/master/8.2/bookworm/fpm/Dockerfile
|
||||
|
||||
[global]
|
||||
error_log = /proc/self/fd/2
|
||||
|
||||
; https://github.com/docker-library/php/pull/725#issuecomment-443540114
|
||||
log_limit = 8192
|
||||
|
||||
[www]
|
||||
; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.
|
||||
; https://bugs.php.net/bug.php?id=73886
|
||||
access.log = /proc/self/fd/2
|
||||
|
||||
clear_env = no
|
||||
|
||||
; Ensure worker stdout and stderr are sent to the main error log.
|
||||
catch_workers_output = yes
|
||||
decorate_workers_output = no
|
4
config/php.ini
Normal file
4
config/php.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
; Inspired by https://github.com/docker-library/php/blob/master/8.2/bookworm/fpm/Dockerfile
|
||||
|
||||
; https://github.com/docker-library/php/issues/878#issuecomment-938595965'
|
||||
fastcgi.logging = Off
|
Reference in New Issue
Block a user