Skip to content

Commit 733dbdd

Browse files
revamp segment write key config for self-hosted
1 parent 682f524 commit 733dbdd

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

.env.dev.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ PG_PORT=5432
88
# Set your license key here if you have one in order to access premium features.
99
LICENSE_KEY=
1010

11+
# Disable segment product analytics tracking. Please note that we only track minimal product usage data in order to improve the product, and keeping this enabled helps us a lot.
12+
DISABLE_SEGMENT=false
13+
1114
# Change the three settings below to create your initial organization and users.
1215
# The user must also have a matching account in the authentication store used (in Firebase, for example).
1316
# Subsequent users will be able to be created from the application.

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ SESSION_MAX_AGE=43200
9696
# Set your license key here if you have one in order to access premium features.
9797
LICENSE_KEY=
9898

99+
# Disable segment product analytics tracking. Please note that we only track minimal product usage data in order to improve the product, and keeping this enabled helps us a lot.
100+
DISABLE_SEGMENT=false
101+
99102
# Change the two settings below to create your initial organization and users.
100103
# The user must also have a matching account in the authentication store used (in Firebase, for example).
101104
# Subsequent users will be able to be created from the application, and the variables

docker-compose-dev.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ x-frontend-image-version: &frontend-image-version
88
x-shared-environment: &shared-env
99
ENV: development
1010
MARBLE_APP_URL: http://localhost:${HOST_APP_PORT:-3000}
11+
DISABLE_SEGMENT: ${DISABLE_SEGMENT:-false}
1112
x-backend-environment: &backend-env
1213
LICENSE_KEY: ${LICENSE_KEY:-LICENSE_KEY}
1314
PORT: 8080
@@ -29,8 +30,6 @@ x-backend-environment: &backend-env
2930
CREATE_ORG_NAME: ${CREATE_ORG_NAME:-}
3031
CREATE_ORG_ADMIN_EMAIL: ${CREATE_ORG_ADMIN_EMAIL:-}
3132

32-
SEGMENT_WRITE_KEY: ${SEGMENT_WRITE_KEY_BACKEND:-UgkImFmHmBZAWh5fxIKBY3QtvlcBrhqQ}
33-
3433
METABASE_SITE_URL: ${METABASE_SITE_URL:-}
3534
METABASE_JWT_SIGNING_KEY: ${METABASE_JWT_SIGNING_KEY:-}
3635
METABASE_GLOBAL_DASHBOARD_ID: ${METABASE_GLOBAL_DASHBOARD_ID:-}
@@ -51,8 +50,6 @@ x-frontend-environment: &frontend-env
5150
# default value of FIREBASE_PROJECT_ID must be kept if working with the emulator (and the emulator is running in the docker image below)
5251
FIREBASE_PROJECT_ID: test-project
5352

54-
SEGMENT_WRITE_KEY: ${SEGMENT_WRITE_KEY:-hC8qrY2OLhUpl1Xycw523tbuClxlQR6u}
55-
5653
services:
5754
db:
5855
container_name: marble-postgres

docker-compose.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ x-shared-environment: &shared-env
99
ENV: ${ENV}
1010
MARBLE_APP_URL: ${MARBLE_APP_URL}
1111
SENTRY_DSN: ${SENTRY_DSN}
12+
DISABLE_SEGMENT: ${DISABLE_SEGMENT:-false}
1213
x-backend-environment: &backend-env
1314
LICENSE_KEY: ${LICENSE_KEY}
1415

@@ -46,8 +47,6 @@ x-backend-environment: &backend-env
4647
OPENSANCTIONS_API_HOST: ${OPENSANCTIONS_API_HOST}
4748
OPENSANCTIONS_AUTH_METHOD: ${OPENSANCTIONS_AUTH_METHOD}
4849
OPENSANCTIONS_API_KEY: ${OPENSANCTIONS_API_KEY}
49-
50-
SEGMENT_WRITE_KEY: UgkImFmHmBZAWh5fxIKBY3QtvlcBrhqQ
5150
x-frontend-environment: &frontend-env
5251
NODE_ENV: production
5352
PORT: ${APP_PORT:-8080}
@@ -63,8 +62,6 @@ x-frontend-environment: &frontend-env
6362
FIREBASE_AUTH_DOMAIN: ${FIREBASE_AUTH_DOMAIN}
6463
FIREBASE_APP_ID: ${FIREBASE_APP_ID}
6564

66-
SEGMENT_WRITE_KEY: AnqbZOIJ8TvCbQUhXLqin1tXXnxHX0CE
67-
6865
services:
6966
# NB: the docker compose file includes a postgres image for the sake of completeness, but we strongly
7067
# suggest using a production-grade database to run Marble in a production environment

front

Submodule front updated 42 files

0 commit comments

Comments
 (0)