> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/1.5/tutorials/step-by-step-setting-up-a-vpn-server/custom-https-configuration.md).

# 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)
