From 292b80bf6acd91e4f0990e6e06e3127830a8581c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 1 Aug 2022 19:44:24 -0600 Subject: [PATCH] api: Fix in-page links This is really dumb though --- src/docs/markdown/api.md | 4 ++-- src/docs/markdown/command-line.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/markdown/api.md b/src/docs/markdown/api.md index 44fe819..b8f5b9a 100644 --- a/src/docs/markdown/api.md +++ b/src/docs/markdown/api.md @@ -48,10 +48,10 @@ To get started with the API, try our [API tutorial](/docs/api-tutorial) or, if y - **[POST /adapt](#post-adapt)** Adapts a configuration to JSON without running it -- **[GET /pki/ca/<id>](#get-pkicaid)** +- **[GET /pki/ca/<id>](#get-pkicaltidgt)** Returns information about a particular [PKI app](/docs/json/apps/pki/) CA -- **[GET /pki/ca/<id>/certificates](#get-pkicaidcertificates)** +- **[GET /pki/ca/<id>/certificates](#get-pkicaltidgtcertificates)** Returns the certificate chain of a particular [PKI app](/docs/json/apps/pki/) CA - **[GET /reverse_proxy/upstreams](#get-reverse-proxyupstreams)** diff --git a/src/docs/markdown/command-line.md b/src/docs/markdown/command-line.md index d6b2bfd..38cd195 100644 --- a/src/docs/markdown/command-line.md +++ b/src/docs/markdown/command-line.md @@ -435,7 +435,7 @@ Caddy will attempt to install its root certificates into the local trust stores By default, this command installs the root certificate for Caddy's default CA (i.e. "local"). You may specify the ID of another CA with the `--ca` flag. -This command will attempt to connect to Caddy's [admin API](/docs/api) to fetch the root certificate, using the [`GET /pki/ca//certificates`](/docs/api#get-pkicaidcertificates) endpoint. You may explicitly specify the `--address`, or use the `--config` flag to load the admin address from your config, if the running instance's admin API is not using the default listen address. +This command will attempt to connect to Caddy's [admin API](/docs/api) to fetch the root certificate, using the [`GET /pki/ca//certificates`](/docs/api#get-pkicaltidgtcertificates) endpoint. You may explicitly specify the `--address`, or use the `--config` flag to load the admin address from your config, if the running instance's admin API is not using the default listen address. You may also use the `caddy` binary with this command to install certificates on other machines in your network, if the admin API is made accessible to other machines -- be careful if doing this, to not expose the admin API to untrusted clients.