Configure NGINX Proxy for Silo 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.netto the MinIO Server listening onhttps://minio.local:9000. - Proxy requests to the subpath
https://minio.example.net/minio/uito the MinIO Console listening onhttps://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:
- Set the
MINIO_BROWSER_REDIRECT_URLto the proxy host FQDN of the MinIO Console (https://example.net/minio/ui)
Create or configure separate, unique subdomains for the MinIO Server S3 API and for the MinIO Console Web GUI.
For example, given the root domain of example.net:
- Proxy request to the subdomain
minio.example.netto the MinIO Server listening onhttps://minio.local:9000 - Proxy requests to the subdomain
console.example.netto the MinIO Console listening onhttps://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 on a subpath, such as minio.example.net/s3/.
You must also set the following environment variables for the MinIO deployment:
- Set the
MINIO_BROWSER_REDIRECT_URLto the proxy host FQDN of the MinIO Console (https://console.example.net/)