22134: Define PATH in nginx+Passenger configuration
authorBrett Smith <brett.smith@curii.com>
Thu, 19 Sep 2024 14:54:55 +0000 (10:54 -0400)
committerBrett Smith <brett.smith@curii.com>
Thu, 19 Sep 2024 14:54:55 +0000 (10:54 -0400)
commit569391c79c43224c3b4c58eef5fca56ed60267c4
tree913a80e846aa09279d0e99dae9adb015c879d508
parentc99df3795255132bcaf7333a6178d654fae9deb7
22134: Define PATH in nginx+Passenger configuration

RailsAPI needs this set to run `arvados-server`. To date this has been
handled by the default `passenger_load_shell_envvars on`, which starts
RailsAPI via `bash -l -c` to load environment variables from the shellrc
files in /etc. However, this can fail due to system configuration
changes, and we have seen Passenger try to start RailsAPI with an empty
PATH after a server reload/restart. Defining PATH here should make the
system more resilient against other system configuration changes.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
tools/salt-install/config_examples/multi_host/aws/pillars/nginx_api_configuration.sls
tools/salt-install/config_examples/single_host/multiple_hostnames/pillars/nginx_api_configuration.sls
tools/salt-install/config_examples/single_host/single_hostname/pillars/nginx_api_configuration.sls