mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
docs: Fix caddyfile snippet in profiling article
This commit is contained in:
parent
904071881b
commit
d8e2c4ac3e
1 changed files with 3 additions and 1 deletions
|
@ -98,7 +98,9 @@ By default, Caddy's admin API is only accessible over the loopback socket. Howev
|
||||||
One easy option is to simply reverse proxy to it from your site:
|
One easy option is to simply reverse proxy to it from your site:
|
||||||
|
|
||||||
```caddy-d
|
```caddy-d
|
||||||
reverse_proxy /debug/pprof/* localhost:2019
|
reverse_proxy /debug/pprof/* localhost:2019 {
|
||||||
|
header_up Host {upstream_hostport}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This will, of course, make profiles available to who can connect to your site. If that's not desired, you can add some authentication using an HTTP auth module of your choice.
|
This will, of course, make profiles available to who can connect to your site. If that's not desired, you can add some authentication using an HTTP auth module of your choice.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue