minio/Caddy.md

28 lines
582 B
Markdown
Raw Normal View History

2016-03-14 23:51:16 -04:00
## Setting up Proxy using Caddy.
2016-03-08 13:39:28 -05:00
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.
2016-03-14 23:51:16 -04:00
```bash
$ ./minio --address localhost:9000 server <your_export_dir>
```
2016-03-08 13:39:28 -05:00
```bash
your.public.com {
2016-03-14 23:51:16 -04:00
proxy / localhost:9000 {
2016-03-08 13:39:28 -05:00
proxy_header Host {host}
proxy_header X-Real-IP {remote}
proxy_header X-Forwarded-Proto {scheme}
}
}
```
```bash
$ ./caddy
Activating privacy features... done.
2016-03-14 23:51:16 -04:00
your.public.com:443
your.public.com:80
2016-03-08 13:39:28 -05:00
```