mirror of
https://github.com/caddyserver/website.git
synced 2025-05-07 12:17:15 -04:00
Adding reverse proxy and Let's Encrypt example
You can do both reverse proxy and getting a Let's Encrypt certificate in a single command.
This commit is contained in:
parent
f3f21afac0
commit
8728c11bee
1 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,10 @@ If you don't have permission to bind to low ports, you can proxy from a higher p
|
|||
|
||||
Then make a request to [localhost](https://localhost) (or whatever address you specified in `--from`) to see it working!
|
||||
|
||||
You can also automatically bind `caddy` reverse proxy to a public IP address and have a Let's Encrypt certificate issued for.
|
||||
This command will automatically issue a TLS certificate for `mywebsite.example.com` and start reverse proxy.
|
||||
|
||||
<pre><code class="cmd bash">caddy reverse-proxy --from https://mywebsite.example.com --to 127.0.0.1:9000</code></pre>
|
||||
|
||||
|
||||
## Caddyfile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue