mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Update Caddy.md
This commit is contained in:
parent
83f9a50137
commit
15b5f4d7a3
12
Caddy.md
12
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 <your_export_dir>
|
||||
```
|
||||
|
||||
```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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user