HTTP Server: Serve Grafana with a custom URL path prefix (#17048)
Adds a new [server] setting `serve_from_sub_path`. By enabling this setting and using a subpath in `root_url` setting, e.g. `root_url = http://localhost:3000/grafana`, Grafana will be accessible on `http://localhost:3000/grafana`. By default it is set to `false` for compatibility reasons. Closes #16623
This commit is contained in:
committed by
Marcus Efraimsson
parent
b547a0cb34
commit
04d473b3e5
@@ -154,6 +154,15 @@ callback URL to be correct).
|
||||
> in front of Grafana that exposes it through a subpath. In that
|
||||
> case add the subpath to the end of this URL setting.
|
||||
|
||||
### serve_from_sub_path
|
||||
|
||||
Serve Grafana from subpath specified in `root_url` setting. By
|
||||
default it is set to `false` for compatibility reasons.
|
||||
|
||||
By enabling this setting and using a subpath in `root_url` above, e.g.
|
||||
`root_url = http://localhost:3000/grafana`, Grafana will be accessible on
|
||||
`http://localhost:3000/grafana`.
|
||||
|
||||
### static_root_path
|
||||
|
||||
The path to the directory where the front end files (HTML, JS, and CSS
|
||||
|
||||
Reference in New Issue
Block a user