1
0
mirror of https://github.com/astaxie/cookbook.git synced 2025-04-18 18:04:06 +03:00
minio-cookbook/docs/setup-caddy-proxy-with-minio.md
koolhead17 51855f62cc Doc: Modified Caddy doc with adding header_upstream flag instead (#78)
proxy_header as suggested for newer version.
2016-08-29 14:46:15 -07:00

1.2 KiB

Setup Caddy proxy with Minio Server Gitter

Caddy is a web server like Apache, nginx, or lighttpd. The purpose of Caddy is to streamline web development, deployment, and hosting workflows so that anyone can host their own web sites without requiring special technical knowledge.

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

1. Prerequisites

Install Minio Server from here.

2. Installation

Install Caddy Server from here.

3. Configuration

Create a caddy configuration file as below, change the ip addresses according to your local minio and DNS configuration.


your.public.com 

proxy / localhost:9000 {
    header_upstream X-Forwarded-Proto {scheme}
    header_upstream X-Forwarded-Host {host}
    header_upstream Host {host}
}

4. Recipe Steps

Step 1: Start minio server.


$ ./minio --address localhost:9000 server <your_export_dir>

Step 2: Start caddy server.


$ ./caddy
Activating privacy features... done.
your.public.com:443
your.public.com:80