You've already forked minio-cookbook
mirror of
https://github.com/astaxie/cookbook.git
synced 2025-08-06 22:22:37 +03:00
Doc: Realigned the content home and moved cookbook content inside docs directory. (#45)
This commit is contained in:
committed by
Harshavardhana
parent
55a8a5bd21
commit
29546a45e8
55
docs/setup-nginx-proxy-with-minio.md
Normal file
55
docs/setup-nginx-proxy-with-minio.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Setup Nginx proxy with Minio Server [](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
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](http://docs.minio.io/docs/minio).
|
||||
|
||||
## 2. Installation
|
||||
|
||||
Install Nginx from [here](http://nginx.org/en/download.html).
|
||||
|
||||
## 3. Configuration
|
||||
|
||||
Add below content as a file ``/etc/nginx/sites-enabled`` and also remove the existing ``default`` file in same directory.
|
||||
|
||||
```sh
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name example.com;
|
||||
location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://localhost:9000;
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Note:
|
||||
|
||||
* Replace example.com with your own hostname.
|
||||
* Replace ``http://localhost:9000`` with your own server name.
|
||||
|
||||
## 4. Recipe Steps
|
||||
|
||||
### Step 1: Start Minio server.
|
||||
|
||||
```sh
|
||||
|
||||
$ minio server /mydatadir
|
||||
|
||||
```
|
||||
|
||||
### Step 2: Restart Nginx server.
|
||||
|
||||
```sh
|
||||
|
||||
$ sudo service nginx restart
|
||||
|
||||
```
|
Reference in New Issue
Block a user