commit d0a37fe5b35078acdcea403d05ca21c3f2c49fc1 Author: colin Date: Sat Oct 26 22:04:27 2024 -0400 Add 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