2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: Apache-2.0
13 upstream collections_downloads_upstream:
14 - server: 'collections.internal:9002 fail_timeout=10s'
19 arvados_collections_download_default.conf:
24 - server_name: collections.fixme.example.net download.fixme.example.net
27 - location /.well-known:
30 - return: '301 https://$host$request_uri'
32 ### COLLECTIONS / DOWNLOAD
33 arvados_collections_download_ssl.conf:
38 - server_name: collections.fixme.example.net download.fixme.example.net
41 - index: index.html index.htm
43 - proxy_pass: 'http://collections_downloads_upstream'
44 - proxy_read_timeout: 90
45 - proxy_connect_timeout: 90
46 - proxy_redirect: 'off'
47 - proxy_set_header: X-Forwarded-Proto https
48 - proxy_set_header: 'Host $http_host'
49 - proxy_set_header: 'X-Real-IP $remote_addr'
50 - proxy_set_header: 'X-Forwarded-For $proxy_add_x_forwarded_for'
51 - proxy_buffering: 'off'
52 - client_max_body_size: 0
53 - proxy_http_version: '1.1'
54 - proxy_request_buffering: 'off'
55 - include: 'snippets/ssl_hardening_default.conf'
56 # - include: 'snippets/letsencrypt.conf'
57 - include: 'snippets/ssl_snakeoil.conf'
58 - access_log: /var/log/nginx/collections.fixme.example.net.access.log combined
59 - error_log: /var/log/nginx/collections.fixme.example.net.error.log