OpenSlides/docker/setup-prod.sh
Finn Stutzenstein 9372386979
Prod setup
2020-10-28 08:46:03 +01:00

12 lines
289 B
Bash
Executable File

#!/bin/bash
# Create keys for auth, if they do not exist
if [ ! -d keys ]; then
mkdir keys
ssh-keygen -f keys/rsa-token.key -t rsa -b 2048 -P ""
ssh-keygen -f keys/rsa-cookie.key -t rsa -b 2048 -P ""
fi
( set -a; source .env; m4 docker-compose.yml.m4 ) > docker-compose.yml