-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: encryption salt keys for the plugin server (#25454)
- Loading branch information
1 parent
975659d
commit c99d825
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ export SENTRY_DSN="${SENTRY_DSN:-'https://[email protected]/1'}" | |
POSTHOG_SECRET=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56) | ||
export POSTHOG_SECRET | ||
|
||
ENCRYPTION_SALT_KEYS=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56) | ||
export ENCRYPTION_SALT_KEYS | ||
|
||
# Talk to the user | ||
echo "Welcome to the single instance PostHog installer 🦔" | ||
echo "" | ||
|
@@ -128,6 +131,7 @@ EOF | |
# Write .env file | ||
envsubst > .env <<EOF | ||
POSTHOG_SECRET=$POSTHOG_SECRET | ||
ENCRYPTION_SALT_KEYS=$ENCRYPTION_SALT_KEYS | ||
SENTRY_DSN=$SENTRY_DSN | ||
DOMAIN=$DOMAIN | ||
EOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters