1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-12 16:28:06 +00:00

Merge branch 'allow-disabling-support-via-env-var' into 'develop'

Allow disabling live support via env vars

See merge request 
This commit is contained in:
Bram Wiepjes 2024-07-11 08:02:46 +00:00
commit ad55157f53
7 changed files with 11 additions and 4 deletions
.env.exampledocker-compose.local-build.ymldocker-compose.no-caddy.ymldocker-compose.yml
docs/installation
enterprise/web-frontend/modules/baserow_enterprise
web-frontend/modules/core

View file

@ -118,6 +118,7 @@ DATABASE_NAME=baserow
# BASEROW_DISABLE_PUBLIC_URL_CHECK= # BASEROW_DISABLE_PUBLIC_URL_CHECK=
# DOWNLOAD_FILE_VIA_XHR= # DOWNLOAD_FILE_VIA_XHR=
# BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW= # BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW=
# BASEROW_DISABLE_SUPPORT=
# BASEROW_PLUGIN_GIT_REPOS= # BASEROW_PLUGIN_GIT_REPOS=
# BASEROW_PLUGIN_URLS= # BASEROW_PLUGIN_URLS=

View file

@ -205,6 +205,7 @@ services:
INITIAL_TABLE_DATA_LIMIT: INITIAL_TABLE_DATA_LIMIT:
DOWNLOAD_FILE_VIA_XHR: DOWNLOAD_FILE_VIA_XHR:
BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW: BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW:
BASEROW_DISABLE_SUPPORT:
HOURS_UNTIL_TRASH_PERMANENTLY_DELETED: HOURS_UNTIL_TRASH_PERMANENTLY_DELETED:
DISABLE_ANONYMOUS_PUBLIC_VIEW_WS_CONNECTIONS: DISABLE_ANONYMOUS_PUBLIC_VIEW_WS_CONNECTIONS:
FEATURE_FLAGS: FEATURE_FLAGS:

View file

@ -198,6 +198,7 @@ services:
INITIAL_TABLE_DATA_LIMIT: INITIAL_TABLE_DATA_LIMIT:
DOWNLOAD_FILE_VIA_XHR: DOWNLOAD_FILE_VIA_XHR:
BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW: BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW:
BASEROW_DISABLE_SUPPORT:
HOURS_UNTIL_TRASH_PERMANENTLY_DELETED: HOURS_UNTIL_TRASH_PERMANENTLY_DELETED:
DISABLE_ANONYMOUS_PUBLIC_VIEW_WS_CONNECTIONS: DISABLE_ANONYMOUS_PUBLIC_VIEW_WS_CONNECTIONS:
FEATURE_FLAGS: FEATURE_FLAGS:

View file

@ -229,6 +229,7 @@ services:
INITIAL_TABLE_DATA_LIMIT: INITIAL_TABLE_DATA_LIMIT:
DOWNLOAD_FILE_VIA_XHR: DOWNLOAD_FILE_VIA_XHR:
BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW: BASEROW_DISABLE_GOOGLE_DOCS_FILE_PREVIEW:
BASEROW_DISABLE_SUPPORT:
HOURS_UNTIL_TRASH_PERMANENTLY_DELETED: HOURS_UNTIL_TRASH_PERMANENTLY_DELETED:
DISABLE_ANONYMOUS_PUBLIC_VIEW_WS_CONNECTIONS: DISABLE_ANONYMOUS_PUBLIC_VIEW_WS_CONNECTIONS:
FEATURE_FLAGS: FEATURE_FLAGS:

View file

@ -277,6 +277,7 @@ domain than your Baserow, you need to make sure CORS is configured correctly.
| BASEROW\_UNIQUE\_ROW\_VALUES\_SIZE\_LIMIT | Sets the limit for the automatic detection of multiselect options when converting a text field to a multiselect field. Increase the value to detect more options automatically, but consider performance implications. | 100 | | BASEROW\_UNIQUE\_ROW\_VALUES\_SIZE\_LIMIT | Sets the limit for the automatic detection of multiselect options when converting a text field to a multiselect field. Increase the value to detect more options automatically, but consider performance implications. | 100 |
| BASEROW\_BUILDER\_DOMAINS | A comma separated list of domain names that can be used as the domains to create sub domains in the application builder. | | | BASEROW\_BUILDER\_DOMAINS | A comma separated list of domain names that can be used as the domains to create sub domains in the application builder. | |
| BASEROW\_FRONTEND\_SAME\_SITE\_COOKIE | String value indicating what the sameSite value of the created cookies should be. | lax | | BASEROW\_FRONTEND\_SAME\_SITE\_COOKIE | String value indicating what the sameSite value of the created cookies should be. | lax |
| BASEROW\_DISABLE\_SUPPORT | Set to any value to disable the support features in Baserow. | |
### SSO Configuration ### SSO Configuration

View file

@ -16,10 +16,11 @@ export class EnterprisePlugin extends BaserowPlugin {
} }
getSidebarWorkspaceComponents(workspace) { getSidebarWorkspaceComponents(workspace) {
const sidebarItems = [ const sidebarItems = []
ChatwootSupportSidebarWorkspace, if (!this.app.$config.BASEROW_DISABLE_SUPPORT) {
AuditLogSidebarWorkspace, sidebarItems.push(ChatwootSupportSidebarWorkspace)
] }
sidebarItems.push(AuditLogSidebarWorkspace)
return sidebarItems return sidebarItems
} }

View file

@ -105,6 +105,7 @@ export default function CoreModule(options) {
: [], : [],
BASEROW_FRONTEND_SAME_SITE_COOKIE: BASEROW_FRONTEND_SAME_SITE_COOKIE:
process.env.BASEROW_FRONTEND_SAME_SITE_COOKIE ?? 'lax', process.env.BASEROW_FRONTEND_SAME_SITE_COOKIE ?? 'lax',
BASEROW_DISABLE_SUPPORT: process.env.BASEROW_DISABLE_SUPPORT ?? '',
} }
this.options.publicRuntimeConfig.BASEROW_EMBEDDED_SHARE_URL = this.options.publicRuntimeConfig.BASEROW_EMBEDDED_SHARE_URL =