ipfs-api 0.17.0

Implementation of an IPFS HTTP API client
Documentation
# Copyright 2022 rust-ipfs-api Developers
#
# Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
# http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
# http://opensource.org/licenses/MIT>, 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;
    }
}