21 lines
748 B
Plaintext
21 lines
748 B
Plaintext
|
|
# Apache configuration snippet for Server-Sent Events (SSE) support
|
||
|
|
# Add this to your Apache virtual host configuration
|
||
|
|
#
|
||
|
|
# Location: Typically in /etc/apache2/sites-available/your-site.conf
|
||
|
|
# or wherever your virtual host is configured
|
||
|
|
|
||
|
|
# Increase timeout for SSE connections (6 hours to match HAProxy)
|
||
|
|
# This prevents Apache from killing long-running SSE connections
|
||
|
|
ProxyTimeout 21600
|
||
|
|
|
||
|
|
# Alternative: Set timeout specifically for SSE endpoints
|
||
|
|
# Uncomment and adjust the path if you want to be more specific
|
||
|
|
# <LocationMatch "^/transcribe/server\.php">
|
||
|
|
# ProxyTimeout 21600
|
||
|
|
# </LocationMatch>
|
||
|
|
|
||
|
|
# Note: After adding this to your virtual host config, reload Apache:
|
||
|
|
# sudo systemctl reload apache2
|
||
|
|
# or
|
||
|
|
# sudo service apache2 reload
|