2 {% set nginx_log = '/var/log/nginx' %}
12 'geo $external_client':
15 upstream controller_upstream:
16 - server: 'localhost:8003 fail_timeout=10s'
22 arvados_controller_default:
27 - server_name: example.net api.example.net
30 - location /.well-known:
33 - return: '301 https://$host$request_uri'
40 - server_name: example.net
43 - index: index.html index.htm
45 - proxy_pass: 'http://controller_upstream'
46 - proxy_read_timeout: 300
47 - proxy_connect_timeout: 90
48 - proxy_redirect: 'off'
49 - proxy_set_header: X-Forwarded-Proto https
50 - proxy_set_header: 'Host $http_host'
51 - proxy_set_header: 'X-Real-IP $remote_addr'
52 - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
53 - proxy_set_header: 'X-External-Client $external_client'
54 # - include: 'snippets/letsencrypt.conf'
55 - include: 'snippets/snakeoil.conf'
56 - access_log: {{ nginx_log }}/example.net.access.log combined
57 - error_log: {{ nginx_log }}/example.net.error.log
58 - client_max_body_size: 128m