Cfg: Add a setting to configure if the local file system is available (#83616)

* Introduce environment.local_filesystem_available

* Only show TLS client cert, client key, client ca when local_filesystem_available is true

* Rename LocalFSAvailable to LocalFileSystemAvailable
This commit is contained in:
Misi
2024-03-01 10:39:50 +01:00
committed by GitHub
parent 2532047e7a
commit 75b020c19d
7 changed files with 16 additions and 0 deletions
+1
View File
@@ -220,6 +220,7 @@ func (hs *HTTPServer) getFrontendSettings(c *contextmodel.ReqContext) (*dtos.Fro
PublicDashboardsEnabled: hs.Cfg.PublicDashboardsEnabled,
SharedWithMeFolderUID: folder.SharedWithMeFolderUID,
RootFolderUID: accesscontrol.GeneralFolderUID,
LocalFileSystemAvailable: hs.Cfg.LocalFileSystemAvailable,
BuildInfo: dtos.FrontendSettingsBuildInfoDTO{
HideVersion: hideVersion,