Skip to content

Commit

Permalink
YDA-6036: Add portal timeout parameter
Browse files Browse the repository at this point in the history
Add a virtual host timeout parameter for the Yoda portal.
  • Loading branch information
stsnel committed Dec 2, 2024
1 parent 611ed70 commit 57620ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/administration/configuring-yoda.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ tcp_keepalive_intvl | IPv4 TCP keepalives: time between keepalives
yoda_theme | The theme to use for the Yoda Portal. See also [the theme documentation](../design/overview/theme-packages.md). By default, Yoda uses the UU theme.
yoda_theme_path | Path where themes for the Yoda Portal are retrieved from. See [the theme documentation](../design/overview/theme-packages.md) for more information.
portal_session_cookie_samesite | Samesite setting for session cookies Yoda Portal. Should be 'Lax' if OIDC is enabled and identity provider is in different domain. Otherwise it should be 'Strict'. Default value: 'Strict'.
yoda_portal_timeout | The web server timeout for requests to the Yoda portal, in seconds (default: 60)
yoda_portal_wsgi_daemon_threads | The number of threads to be created to handle requests in each daemon process (default: 15)
yoda_portal_upload_part_files | Whether the portal uploader function should upload multi-chunk files as .part files initially and rename them to their final name later (boolean value, default: true). It is generally recommended to keep this enabled, so that users can easily see when an upload failed and the result is partial. However, on storage systems where renaming data objects takes much time, such as S3 object storage in consistent mode, it may be necessary to switch use of .part files off.
yoda_portal_monitor_signal_file | Path to the signal file for the portal monitoring thread. If this file is present, the monitor thread will start logging technical support information to the directory configured in `yoda_portal_monitor_output_dir`. Set to empty string to disable the monitoring thread. Default value: /var/www/yoda/show-tech.sig
Expand Down
3 changes: 3 additions & 0 deletions roles/yoda_portal/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ token_lifetime: 72 # Lifetime of data access tok
# SRAM Configuration
enable_sram: false # Enable SRAM configuration

# Apache timeout for Yoda portal vhost in seconds
yoda_portal_timeout: 60

# Monitor thread configuration for extracting tech support information
yoda_portal_monitor_output_dir: /tmp
yoda_portal_monitor_signal_file: /var/www/yoda/show-tech.sig
1 change: 1 addition & 0 deletions roles/yoda_portal/templates/yoda-portal-vhost.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<VirtualHost *:443>
DocumentRoot "/var/www/yoda/public"
ServerName {{ yoda_portal_fqdn }}
Timeout {{ yoda_portal_timeout }}

<Directory /var/www/yoda>
AllowOverride All
Expand Down

0 comments on commit 57620ae

Please sign in to comment.