Merge "Add start time (in seconds) to the WSGI configuration file"

This commit is contained in:
Zuul 2024-12-05 15:38:17 +00:00 committed by Gerrit Code Review
commit 3510a4c583

View File

@ -293,6 +293,8 @@ function write_uwsgi_config {
iniset "$conf" uwsgi add-header "Connection: close" iniset "$conf" uwsgi add-header "Connection: close"
# This ensures that file descriptors aren't shared between processes. # This ensures that file descriptors aren't shared between processes.
iniset "$conf" uwsgi lazy-apps true iniset "$conf" uwsgi lazy-apps true
# Starting time of the WSGi server
iniset "$conf" uwsgi start-time %t
# If we said bind directly to http, then do that and don't start the apache proxy # If we said bind directly to http, then do that and don't start the apache proxy
if [[ -n "$http" ]]; then if [[ -n "$http" ]]; then
@ -367,6 +369,8 @@ function write_local_uwsgi_http_config {
iniset "$conf" uwsgi http-keepalive false iniset "$conf" uwsgi http-keepalive false
# Increase socket timeout for slow chunked uploads # Increase socket timeout for slow chunked uploads
iniset "$conf" uwsgi socket-timeout 30 iniset "$conf" uwsgi socket-timeout 30
# Starting time of the WSGi server
iniset "$conf" uwsgi start-time %t
enable_apache_mod proxy enable_apache_mod proxy
enable_apache_mod proxy_http enable_apache_mod proxy_http