- Add new upstream PHP-FPM servers to Nginx configuration for enhanced load balancing. - Introduce Elastic APM PHP agent in `php.ini` and update Dockerfile for better dependency management. - Secure Kibana and Elasticsearch connections in Metricbeat/Filebeat configurations with credentials. - Remove unused PHP dependencies from `composer.json` and `composer.lock`.
17 lines
616 B
INI
17 lines
616 B
INI
; PHP custom configuration for sessions and logging
|
|
|
|
; Store sessions in Redis so multiple PHP-FPM replicas can share state
|
|
session.save_handler = redis
|
|
; Add auth=PASSWORD if you set a password on Redis, and adjust database if needed
|
|
session.save_path = "tcp://redis:6379?database=0"
|
|
|
|
; Logging
|
|
log_errors = On
|
|
error_log = /var/log/php/error.log
|
|
|
|
; Elastic APM PHP agent
|
|
; The extension is installed via apt (elastic-apm-php)
|
|
extension=elastic_apm.so
|
|
; Optional bootstrap (enables automatic instrumentation where supported)
|
|
;elastic_apm.bootstrap_php_part_file=/opt/elastic/apm-agent-php/src/bootstrap_php_part.php
|