mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-24 09:24:13 +01:00
Merge pull request #220 from paricbat/main
Add important details about the server.base-url property
This commit is contained in:
commit
eaf08d42dd
@ -138,6 +138,10 @@ A number between 1 and 65,535, so long as that port isn't already used by anythi
|
|||||||
#### `base-url`
|
#### `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.
|
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`
|
#### `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.
|
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.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user