From 15b5f4d7a33b1d66bebf14a4debca368a9c9d944 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 14 Mar 2016 20:51:16 -0700 Subject: [PATCH] Update Caddy.md --- Caddy.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Caddy.md b/Caddy.md index d278f60ce..5cfe9e6e5 100644 --- a/Caddy.md +++ b/Caddy.md @@ -1,23 +1,27 @@ -### Proxy using Caddy. +## Setting up Proxy using Caddy. Please download [Caddy Server](https://caddyserver.com/download) Create a caddy configuration file as below, change the ip addresses according to your local minio and DNS configuration. +```bash +$ ./minio --address localhost:9000 server +``` + ```bash your.public.com { - proxy / 10.0.1.3:9000 { + proxy / localhost:9000 { proxy_header Host {host} proxy_header X-Real-IP {remote} proxy_header X-Forwarded-Proto {scheme} } - tls off } ``` ```bash $ ./caddy Activating privacy features... done. -your.public.com +your.public.com:443 +your.public.com:80 ```