1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-16 04:56:18 +00:00

minor changes, auto-certificate

This commit is contained in:
mihalin
2021-09-15 22:53:18 +03:00
parent cf80e903da
commit 289b0d239a
13 changed files with 95 additions and 270 deletions

View File

@@ -1,6 +1,12 @@
#!/bin/sh
set -e
if [[ -z "${CUSTOM_CERT}" ]]; then
if [ ! -f /cert/private.key ]; then
openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 1000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=my_cn"
fi
fi
sleep 10
aerich upgrade
python main.py
python main.py