Add config var OpenLinksWithDefaultApp

This commit is contained in:
Jan
2023-05-16 16:52:54 +02:00
parent c37e8350df
commit d345db7dec
3 changed files with 9 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
Enhancement: add WEB_OPTION_OPEN_LINKS_WITH_DEFAULT_APP env variable
We introduced the open file links with default app feature in web which is enabled by default,
this is now configurable and can be disabled by setting the env `WEB_OPTION_OPEN_LINKS_WITH_DEFAULT_APP` to `false`.
https://github.com/owncloud/ocis/pull/6328

View File

@@ -79,7 +79,8 @@ func DefaultConfig() *config.Config {
Sidebar: config.Sidebar{
Shares: config.SidebarShares{},
},
Upload: &config.Upload{},
Upload: &config.Upload{},
OpenLinksWithDefaultApp: true,
},
},
},

View File

@@ -19,6 +19,7 @@ type Options struct {
Editor *Editor `json:"editor,omitempty" yaml:"editor"`
ContextHelpersReadMore bool `json:"contextHelpersReadMore,omitempty" yaml:"contextHelpersReadMore" env:"WEB_OPTION_CONTEXTHELPERS_READ_MORE" desc:"Specifies whether the 'Read more' link should be displayed or not."`
LogoutURL string `json:"logoutUrl,omitempty" yaml:"logoutUrl" env:"WEB_OPTION_LOGOUT_URL" desc:"Adds a link to the user's profile page to point him to an external page, where he can manage his session and devices. This is helpful when an external IdP is used. This option is disabled by default."`
OpenLinksWithDefaultApp bool `json:"openLinksWithDefaultApp,omitempty" yaml:"openLinksWithDefaultApp" env:"WEB_OPTION_OPEN_LINKS_WITH_DEFAULT_APP" desc:"Specifies whether single file link shares should be opened with the default app or not. If not opened by the default app, the Web UI just displays the file details."`
}
// AccountEditLink are the AccountEditLink options