Files
domjudge/roles/configure_domserver/files/config/php/domjudge.conf

36 lines
963 B
Plaintext

; Generated from 'domjudge-fpm.conf.in' on Sat Mar 15 17:12:25 UTC 2025.
; PHP-FPM configuration for DOMjudge
[domjudge]
user = www-data
group = www-data
listen = /var/run/php-fpm-domjudge.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = static
pm.max_children = 40
pm.max_requests = 5000
pm.status_path = /fpm_status
request_slowlog_timeout = 10s
slowlog = /var/log/php-fpm-domjudge.log.slow
php_flag[display_errors] = off
php_admin_flag[log_errors] = on
php_admin_value[error_log] = /var/log/fpm-php.domjudge.log
; Set these three to be at least the size of your largest testcase and
; largest expected program output.
php_admin_value[memory_limit] = 4096M
php_admin_value[upload_max_filesize] = 4096M
php_admin_value[post_max_size] = 4096M
; This must be strictly larger than the configured max number of source
; files a team can submit.
php_admin_value[max_file_uploads] = 101
php_admin_value[date.timezone] = Asia/Taipei