# Copyright 2022 rust-ipfs-api Developers # # Licensed under the Apache License, Version 2.0, or the MIT license , at your option. This file may not be # copied, modified, or distributed except according to those terms. server { listen 80; location / { auth_basic "Restricted"; auth_basic_user_file /secrets/htpasswd; proxy_read_timeout 60; proxy_connect_timeout 60; proxy_pass http://replaced_at_runtime:5001; proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }