OpenSlides/docker/setup-prod.sh

12 lines
289 B
Bash
Raw Normal View History

2020-10-05 10:43:43 +02:00
#!/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