mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-31 15:08:42 -04:00
Bring reverse proxy docs up to speed
parent
0214a460f7
commit
34a28cb40b
@ -72,7 +72,8 @@ And this is the same, but with automatic HTTPS (notice that we now serve on the
|
|||||||
The reason this particular config gets automatic HTTPS is because the host matcher informs Caddy which hostnames to manage certificates for.
|
The reason this particular config gets automatic HTTPS is because the host matcher informs Caddy which hostnames to manage certificates for.
|
||||||
|
|
||||||
|
|
||||||
The following is a simple http reverse proxy, with automatic https disabled:
|
The following is a simple HTTP reverse proxy, with automatic HTTPS disabled:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"apps": {
|
"apps": {
|
||||||
@ -88,7 +89,7 @@ The following is a simple http reverse proxy, with automatic https disabled:
|
|||||||
"handler": "reverse_proxy",
|
"handler": "reverse_proxy",
|
||||||
"upstreams": [
|
"upstreams": [
|
||||||
{
|
{
|
||||||
"host": "http://localhost:8080"
|
"dial": "localhost:8080"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -101,7 +102,7 @@ The following is a simple http reverse proxy, with automatic https disabled:
|
|||||||
"handler": "reverse_proxy",
|
"handler": "reverse_proxy",
|
||||||
"upstreams": [
|
"upstreams": [
|
||||||
{
|
{
|
||||||
"host": "http://localhost:3000"
|
"dial": "localhost:3000"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user