From bae95a5e07119fb1e24907a4ed98449edafb7daa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veronika=20Bu=C5=A1ov=C3=A1?= Date: Sun, 15 Sep 2024 00:29:46 +0200 Subject: [PATCH] Add important details about the server.base-url property --- docs/configuration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/configuration.md b/docs/configuration.md index fb119a5..116f8da 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -138,6 +138,10 @@ A number between 1 and 65,535, so long as that port isn't already used by anythi #### `base-url` The base URL that Glance is hosted under. No need to specify this unless you're using a reverse proxy and are hosting Glance under a directory. If that's the case then you can set this value to `/glance` or whatever the directory is called. Note that the forward slash (`/`) in the beginning is required unless you specify the full domain and path. +> [!IMPORTANT] +> You need to strip the `base-url` prefix before forwarding the request to the Glance server. +> In Caddy you can do this using [`handle_path`](https://caddyserver.com/docs/caddyfile/directives/handle_path) or [`uri strip_prefix`](https://caddyserver.com/docs/caddyfile/directives/uri). + #### `assets-path` The path to a directory that will be served by the server under the `/assets/` path. This is handy for widgets like the Monitor where you have to specify an icon URL and you want to self host all the icons rather than pointing to an external source.