Allows telemetry opt-out
parent
fd8e4ef890
commit
7536473c9d
|
@ -54,8 +54,8 @@ NEXTAUTH_SECRET=
|
||||||
# Used for cross-domain cookie authentication
|
# Used for cross-domain cookie authentication
|
||||||
NEXTAUTH_COOKIE_DOMAIN=.example.com
|
NEXTAUTH_COOKIE_DOMAIN=.example.com
|
||||||
|
|
||||||
# Remove those vars if you don't want Cal to collect anonymous usage
|
# Set this to '1' if you don't want Cal to collect anonymous usage
|
||||||
TELEMETRY_KEY=s2s.2pvs2bbpqq1zxna97wcml.3jdhd69y09dzku3x243ive
|
CALCOM_TELEMETRY_DISABLED=
|
||||||
|
|
||||||
# ApiKey for cronjobs
|
# ApiKey for cronjobs
|
||||||
CRON_API_KEY='0cc0e6c35519bba620c9360cfe3e68d0'
|
CRON_API_KEY='0cc0e6c35519bba620c9360cfe3e68d0'
|
||||||
|
|
|
@ -35,13 +35,15 @@ export function collectPageParameters(
|
||||||
|
|
||||||
export const nextCollectBasicSettings: EventSinkOpts = {
|
export const nextCollectBasicSettings: EventSinkOpts = {
|
||||||
drivers: [
|
drivers: [
|
||||||
process.env.TELEMETRY_KEY && {
|
process.env.CALCOM_TELEMETRY_DISABLED !== "1"
|
||||||
type: "jitsu",
|
? {
|
||||||
opts: {
|
type: "jitsu",
|
||||||
key: process.env.TELEMETRY_KEY,
|
opts: {
|
||||||
server: "https://t.calendso.com",
|
key: "s2s.2pvs2bbpqq1zxna97wcml.esb6cikfrf7yn0qoh1nj1",
|
||||||
},
|
server: "https://t.calendso.com",
|
||||||
},
|
},
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
process.env.TELEMETRY_DEBUG && { type: "echo", opts: { disableColor: true } },
|
process.env.TELEMETRY_DEBUG && { type: "echo", opts: { disableColor: true } },
|
||||||
],
|
],
|
||||||
eventTypes: [
|
eventTypes: [
|
||||||
|
|
|
@ -12,6 +12,7 @@ declare namespace NodeJS {
|
||||||
readonly NEXT_PUBLIC_LICENSE_CONSENT: "agree" | undefined;
|
readonly NEXT_PUBLIC_LICENSE_CONSENT: "agree" | undefined;
|
||||||
/** Needed to enable enterprise-only features */
|
/** Needed to enable enterprise-only features */
|
||||||
readonly CALCOM_LICENSE_KEY: string | undefined;
|
readonly CALCOM_LICENSE_KEY: string | undefined;
|
||||||
|
readonly CALCOM_TELEMETRY_DISABLED: string | undefined;
|
||||||
readonly CALENDSO_ENCRYPTION_KEY: string | undefined;
|
readonly CALENDSO_ENCRYPTION_KEY: string | undefined;
|
||||||
readonly DATABASE_URL: string | undefined;
|
readonly DATABASE_URL: string | undefined;
|
||||||
readonly GOOGLE_API_CREDENTIALS: string | undefined;
|
readonly GOOGLE_API_CREDENTIALS: string | undefined;
|
||||||
|
@ -22,7 +23,6 @@ declare namespace NodeJS {
|
||||||
/** @deprecated use `NEXT_PUBLIC_WEBSITE_URL` */
|
/** @deprecated use `NEXT_PUBLIC_WEBSITE_URL` */
|
||||||
readonly NEXT_PUBLIC_APP_URL: string | undefined;
|
readonly NEXT_PUBLIC_APP_URL: string | undefined;
|
||||||
readonly NEXTAUTH_SECRET: string | undefined;
|
readonly NEXTAUTH_SECRET: string | undefined;
|
||||||
readonly TELEMETRY_KEY: string | undefined;
|
|
||||||
readonly MS_GRAPH_CLIENT_ID: string | undefined;
|
readonly MS_GRAPH_CLIENT_ID: string | undefined;
|
||||||
readonly MS_GRAPH_CLIENT_SECRET: string | undefined;
|
readonly MS_GRAPH_CLIENT_SECRET: string | undefined;
|
||||||
readonly ZOOM_CLIENT_ID: string | undefined;
|
readonly ZOOM_CLIENT_ID: string | undefined;
|
||||||
|
|
|
@ -25,6 +25,8 @@
|
||||||
"^build",
|
"^build",
|
||||||
"@calcom/prisma#build",
|
"@calcom/prisma#build",
|
||||||
"$CALENDSO_ENCRYPTION_KEY",
|
"$CALENDSO_ENCRYPTION_KEY",
|
||||||
|
"$CALCOM_LICENSE_KEY",
|
||||||
|
"$CALCOM_TELEMETRY_DISABLED",
|
||||||
"$CRON_API_KEY",
|
"$CRON_API_KEY",
|
||||||
"$DAILY_API_KEY",
|
"$DAILY_API_KEY",
|
||||||
"$DAILY_SCALE_PLAN",
|
"$DAILY_SCALE_PLAN",
|
||||||
|
@ -65,7 +67,6 @@
|
||||||
"$TANDEM_BASE_URL",
|
"$TANDEM_BASE_URL",
|
||||||
"$TANDEM_CLIENT_ID",
|
"$TANDEM_CLIENT_ID",
|
||||||
"$TANDEM_CLIENT_SECRET",
|
"$TANDEM_CLIENT_SECRET",
|
||||||
"$TELEMETRY_KEY",
|
|
||||||
"$ZOOM_CLIENT_ID",
|
"$ZOOM_CLIENT_ID",
|
||||||
"$ZOOM_CLIENT_SECRET"
|
"$ZOOM_CLIENT_SECRET"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue