; Production PHP settings for the ANBT backend image (Phase 2). ; Loaded as conf.d/zz-production.ini so it wins over earlier conf.d files. ; ----- Error handling ------------------------------------------------------- ; Never render errors into an API response; always log them to the container's ; stderr so `docker logs` and the log driver pick them up. display_errors = Off display_startup_errors = Off log_errors = On error_log = /proc/self/fd/2 error_reporting = E_ALL ; ----- Information disclosure ---------------------------------------------- expose_php = Off ; ----- Limits --------------------------------------------------------------- memory_limit = 256M max_execution_time = 30 upload_max_filesize = 8M post_max_size = 10M max_file_uploads = 20 ; ----- Locale --------------------------------------------------------------- date.timezone = Asia/Tehran default_charset = UTF-8 ; ----- Sessions ------------------------------------------------------------- ; The API is stateless (JWT), but harden the defaults anyway. session.cookie_httponly = On session.cookie_secure = On session.cookie_samesite = Strict session.use_strict_mode = On ; ----- OPcache -------------------------------------------------------------- ; Application code is immutable inside the image, so timestamp validation is ; pure overhead. This MUST be set back to 1 for bind-mounted development. opcache.enable = 1 opcache.enable_cli = 0 opcache.validate_timestamps = 0 opcache.memory_consumption = 128 opcache.interned_strings_buffer = 16 opcache.max_accelerated_files = 20000 opcache.revalidate_freq = 0 opcache.save_comments = 1 opcache.fast_shutdown = 1 ; ----- Realpath cache ------------------------------------------------------- realpath_cache_size = 4096k realpath_cache_ttl = 600