From a previous conversation about how certs work (#165):
If you wanted to only allow custom domains, you wouldn't need a wildcard cert and you could just set ACME_API to https://acme.mock.director
However doing this throws:
2023年02月01日 17:17:21 [INFO] [mydomain.com] acme: Obtaining bundled SAN certificate
5:17PM ERR Couldn't obtain again a certificate or [mydomain.com] error="acme: error: 400 :: POST :: https://acme.mock.directory/order-plz :: urn:ietf:params:acme:error:malformed :: Key ID (kid) in JWS header missing expected URL prefix"
5:17PM ERR Couldn't renew certificate for mydomain.com: acme: error: 400 :: POST :: https://acme.mock.directory/order-plz :: urn:ietf:params:acme:error:malformed :: Key ID (kid) in JWS header missing expected URL prefix
If you try to use the default ACME_API (https://acme-v02.api.letsencrypt.org/directory), attempting to start the pages-server will throw:
you must set $ACME_ACCEPT_TERMS and $DNS_PROVIDER, unless $ACME_API is set to https://acme.mock.directory
So I don't think there currently is a way to run pages-server for custom domains only (no wildcard support). It would be nice if only $ACME_ACCEPT_TERMS was required (not $DNS_PROVIDER) when using the default ACME_API.
From a previous conversation about how certs work (https://codeberg.org/Codeberg/pages-server/issues/165):
> If you wanted to only allow custom domains, you wouldn't need a wildcard cert and you could just set ACME_API to https://acme.mock.director
However doing this throws:
```
2023年02月01日 17:17:21 [INFO] [mydomain.com] acme: Obtaining bundled SAN certificate
5:17PM ERR Couldn't obtain again a certificate or [mydomain.com] error="acme: error: 400 :: POST :: https://acme.mock.directory/order-plz :: urn:ietf:params:acme:error:malformed :: Key ID (kid) in JWS header missing expected URL prefix"
5:17PM ERR Couldn't renew certificate for mydomain.com: acme: error: 400 :: POST :: https://acme.mock.directory/order-plz :: urn:ietf:params:acme:error:malformed :: Key ID (kid) in JWS header missing expected URL prefix
```
If you try to use the default `ACME_API` (https://acme-v02.api.letsencrypt.org/directory), attempting to start the pages-server will throw:
```
you must set $ACME_ACCEPT_TERMS and $DNS_PROVIDER, unless $ACME_API is set to https://acme.mock.directory
```
So I don't think there currently is a way to run pages-server for custom domains only (no wildcard support). It would be nice if only `$ACME_ACCEPT_TERMS` was required (not `$DNS_PROVIDER`) when using the default `ACME_API`.