# Security settings for Multi-User Transcription Server
# Compatible with both mod_php and php-fpm
# IMPORTANT: For Server-Sent Events (SSE) to work with php-fpm, you MUST configure
# Apache's ProxyTimeout in your virtual host configuration. See apache-sse-config.conf
# for the required settings. Without this, Apache will timeout SSE connections after
# 30-60 seconds with a 504 Gateway Timeout error.
# Deny access to config file directly (if accessed via URL)
Require all denied
# Deny access to .json data files
Require all denied
# Disable directory listing
Options -Indexes
# Enable compression
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/json
# Set MIME types
AddType application/json .json
AddType text/event-stream .php
# NOTE: PHP settings (display_errors, upload limits) must be configured in:
# - For php-fpm: /etc/php/X.X/fpm/pool.d/www.conf or php.ini
# - For mod_php: Can use php_flag/php_value directives here