Chore/update project api key (#1348)

Refs firezone/marketing#109
This commit is contained in:
Jamil
2023-01-19 19:46:01 -08:00
committed by GitHub
parent 30fe5650ed
commit 394008c008
13 changed files with 25 additions and 25 deletions

View File

@@ -5,8 +5,8 @@ config :phoenix, :json_library, Jason
# Public API key for telemetry
config :posthog,
api_url: "https://telemetry.firez.one",
api_key: "phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK"
api_url: "https://t.firez.one",
api_key: "phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY"
# Guardian configuration
config :fz_http, FzHttpWeb.Auth.HTML.Authentication,

View File

@@ -1,2 +1,2 @@
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK',{api_host:'https://telemetry.firez.one'})
posthog.init('phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY',{api_host:'https://t.firez.one'})

View File

@@ -18,9 +18,9 @@ def capture
return unless telemetry_id
uri = URI('https://telemetry.firez.one/capture/')
uri = URI('https://t.firez.one/capture/')
data = {
api_key: 'phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK',
api_key: 'phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY',
event: 'firezone-ctl create-or-reset-admin',
properties: {
distinct_id: telemetry_id

View File

@@ -14,9 +14,9 @@ def capture
return unless telemetry_id
uri = URI('https://telemetry.firez.one/capture/')
uri = URI('https://t.firez.one/capture/')
data = {
api_key: 'phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK',
api_key: 'phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY',
event: 'firezone-ctl force-cert-renewal',
properties: {
distinct_id: telemetry_id

View File

@@ -14,9 +14,9 @@ def capture
return unless telemetry_id
uri = URI('https://telemetry.firez.one/capture/')
uri = URI('https://t.firez.one/capture/')
data = {
api_key: 'phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK',
api_key: 'phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY',
event: 'firezone-ctl reconfigure',
properties: {
distinct_id: telemetry_id

View File

@@ -14,9 +14,9 @@ def capture
return unless telemetry_id
uri = URI('https://telemetry.firez.one/capture/')
uri = URI('https://t.firez.one/capture/')
data = {
api_key: 'phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK',
api_key: 'phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY',
event: 'firezone-ctl stop-cert-renewal',
properties: {
distinct_id: telemetry_id

View File

@@ -10,13 +10,13 @@ capture () {
-m 5 \
-H 'Content-Type: application/json' \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"fz_http_crash\",
\"properties\": {
\"distinct_id\": \"$telemetry_id\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null
https://t.firez.one/capture/ > /dev/null
fi
fi
fi

View File

@@ -11,13 +11,13 @@ capture () {
-m 5 \
-H 'Content-Type: application/json' \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"postinst\",
\"properties\": {
\"distinct_id\": \"$telemetry_id\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null
https://t.firez.one/capture/ > /dev/null
fi
fi
fi

View File

@@ -14,13 +14,13 @@ capture () {
-m 5 \
-H 'Content-Type: application/json' \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"postrm\",
\"properties\": {
\"distinct_id\": \"$telemetry_id\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null
https://t.firez.one/capture/ > /dev/null
fi
fi
fi

View File

@@ -53,13 +53,13 @@ capture () {
-m 5 \
-H 'Content-Type: application/json' \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"preinst\",
\"properties\": {
\"distinct_id\": \"$telemetry_id\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null
https://t.firez.one/capture/ > /dev/null
fi
fi
fi

View File

@@ -15,13 +15,13 @@ capture () {
-m 5 \
-H 'Content-Type: application/json' \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"prerm\",
\"properties\": {
\"distinct_id\": \"$telemetry_id\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null
https://t.firez.one/capture/ > /dev/null
fi
fi
fi

View File

@@ -42,14 +42,14 @@ capture () {
-m 5 \
-H "Content-Type: application/json" \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"$1\",
\"properties\": {
\"distinct_id\": \"$tid\",
\"email\": \"$2\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null \
https://t.firez.one/capture/ > /dev/null \
|| true
fi
fi

View File

@@ -23,14 +23,14 @@ capture () {
-m 5 \
-H 'Content-Type: application/json' \
-d "{
\"api_key\": \"phc_ubuPhiqqjMdedpmbWpG2Ak3axqv5eMVhFDNBaXl9UZK\",
\"api_key\": \"phc_xnIRwzHSaI6c81ukilv09w2TRWUJIRo4VCxshvl7znY\",
\"event\": \"$1\",
\"properties\": {
\"distinct_id\": \"$telemetry_id\",
\"email\": \"$2\"
}
}" \
https://telemetry.firez.one/capture/ > /dev/null \
https://t.firez.one/capture/ > /dev/null \
|| true
fi
fi