19015: installer fix: work around a Passenger issue with the detection of RVM
[arvados.git] / tools / salt-install / config_examples / single_host / single_hostname / pillars / nginx_api_configuration.sls
1 ---
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 {%- if grains.os_family in ('RedHat',) %}
7   {%- set group = 'nginx' %}
8 {%- else %}
9   {%- set group = 'www-data' %}
10 {%- endif %}
11
12 ### ARVADOS
13 arvados:
14   config:
15     group: {{ group }}
16
17 ### NGINX
18 nginx:
19   ### SITES
20   servers:
21     managed:
22       arvados_api.conf:
23         enabled: true
24         overwrite: true
25         config:
26           - server:
27             - listen: '__IP_INT__:8004'
28             - server_name: api
29             - root: /var/www/arvados-api/current/public
30             - index:  index.html index.htm
31             - access_log: /var/log/nginx/api.__CLUSTER__.__DOMAIN__-upstream.access.log combined
32             - error_log: /var/log/nginx/api.__CLUSTER__.__DOMAIN__-upstream.error.log
33             - passenger_enabled: 'on'
34             - client_max_body_size: 128m