一切福田,不離方寸,從心而覓,感無不通。

Configure NGINX Proxy for MinIO Server

The following documentation provides a baseline for configuring NGINX to proxy requests to MinIO in a Linux environment. It is not intended as a comprehensive approach to NGINX, proxying, or reverse proxying in general. Modify the configuration as necessary for your infrastructure.

This documentation assumes the following:

  • An existing NGINX deployment
  • An existing MinIO deployment
  • A DNS hostname which uniquely identifies the MinIO deployment

There are two models for proxying requests to the MinIO Server API and the MinIO Console:

Create or configure a dedicated DNS name for the MinIO service.

For the MinIO Server S3 API, proxy requests to the root of that domain. For the MinIO Console Web GUI, proxy requests to the /minio subpath.

For example, given the hostname minio.example.net:

  • Proxy requests to the root https://minio.example.net to the MinIO Server listening on https://minio.local:9000.
  • Proxy requests to the subpath https://minio.example.net/minio/ui to the MinIO Console listening on https://minio.local:9001.

The following location blocks provide a template for further customization in your unique environment:

The S3 API signature calculation algorithm does not support proxy schemes where you host the MinIO Server API such as example.net/s3/.

You must also set the following environment variables for the MinIO deployment:

 

from:https://min.io/docs/minio/linux/integrations/setup-nginx-proxy-with-minio.html