# Custom HTTPS Configuration

By default the install script generates a minimal Caddyfile in `./.volumes/caddy/Caddyfile`:

```
https://defguard.example.com {
    reverse_proxy core:8000
}

https://proxy.example.com {
    reverse_proxy proxy:8080
}

:80 {
    respond 404
}
:443 {
    respond 404
}
```

This configuration leverages Caddy's default [automatic HTTPS support](https://caddyserver.com/docs/automatic-https).

If you wish to customize your HTTPS certificate setup, please follow the official [Caddy docs](https://caddyserver.com/docs/caddyfile/options#tls-options).

Some common scenarios:

* [using wildcard certificates](https://caddyserver.com/docs/caddyfile/patterns#wildcard-certificates)
* [using local cert files](https://caddyserver.com/docs/caddyfile/directives/tls#tls)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.defguard.net/1.5/tutorials/step-by-step-setting-up-a-vpn-server/custom-https-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
