Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.38 KB

setup-nginx-proxy-with-minio.md

File metadata and controls

53 lines (35 loc) · 1.38 KB

Setup Nginx proxy with Minio Server Slack

Nginx is an open source Web server and a reverse proxy server.

In this recipe we will learn how to set up Nginx proxy with Minio Server.

1. Prerequisites

Install Minio Server from here.

2. Installation

Install Nginx from here.

3. Configuration

Add below content as a file /etc/nginx/sites-enabled and also remove the existing default file in same directory.

server {
 listen 80;
 server_name example.com;
 location / {
   proxy_buffering off;
   proxy_set_header Host $http_host;
   proxy_pass http://localhost:9000;
 }
}

Note:

  • Replace example.com with your own hostname.
  • Replace http://localhost:9000 with your own server name.
  • Add client_max_body_size 1000m; in the http context in order to be able to upload large files — simply adjust the value accordingly. The default value is 1m which is far too low for most scenarios.

4. Recipe Steps

Step 1: Start Minio server.

minio server /mydatadir

Step 2: Restart Nginx server.

sudo service nginx restart

Explore Further

Refer this blog post for various Minio and Nginx configuration options.