From d0a37fe5b35078acdcea403d05ca21c3f2c49fc1 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 26 Oct 2024 22:04:27 -0400 Subject: [PATCH] Add configure.sh --- configure.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 configure.sh diff --git a/configure.sh b/configure.sh new file mode 100644 index 0000000..5c08f43 --- /dev/null +++ b/configure.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Create a New Directory for Formbricks +mkdir formbricks-quickstart && cd formbricks-quickstart + +# Download the Docker-Compose File +curl -o docker-compose.yml https://raw.githubusercontent.com/formbricks/formbricks/main/docker/docker-compose.yml + +# Generate NextAuth Secret +sed -i "/NEXTAUTH_SECRET:$/s/NEXTAUTH_SECRET:.*/NEXTAUTH_SECRET: $(openssl rand -hex 32)/" docker-compose.yml + +# Generate Encryption Key +sed -i "/ENCRYPTION_KEY:$/s/ENCRYPTION_KEY:.*/ENCRYPTION_KEY: $(openssl rand -hex 32)/" docker-compose.yml + +# Generate Cron Secret +sed -i "/CRON_SECRET:$/s/CRON_SECRET:.*/CRON_SECRET: $(openssl rand -hex 32)/" docker-compose.yml