Add configure.sh
This commit is contained in:
commit
d0a37fe5b3
|
@ -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
|
Loading…
Reference in New Issue