

php_value upload_max_filesize -1
php_value post_max_size -1
php_value max_execution_time 0
php_value max_input_time -1
php_value memory_limit -1

# php -- BEGIN cPanel-generated handler, do not edit
# Defina o pacote “ea-php80” como a linguagem padrão de programação “PHP”.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php80___lsphp .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit



# Security hardening
Options -Indexes
<FilesMatch "(?i)(\.log$|\.db$|\.sqlite3?$|\.sql$|\.bak$|\.old$|\.orig$)">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>

<FilesMatch "^(migrate_admin_user|init_db)\.php$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>

# Protect internal report/command storage from direct HTTP access
<FilesMatch "(?i)^(reports\.json|command\.txt)$">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order Allow,Deny
        Deny from all
    </IfModule>
</FilesMatch>

# V16 - resolve o anúncio/logotipo dinamicamente pelo cliente.
# Mantém compatibilidade com launchers que ainda consultam /img/api.json.
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^img/api\.json$ api/client_branding.php [L,QSA]
</IfModule>

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php8_module>
   php_value error_log "/home/jfigstho/logs/php.error.log"
   php_flag log_errors On
</IfModule>
<IfModule lsapi_module>
   php_value error_log "/home/jfigstho/logs/php.error.log"
   php_flag log_errors On
</IfModule>
# END cPanel-generated php ini directives, do not edit
