AA / entrypoint.sh
NeraN's picture
Update entrypoint.sh
aa8f7ff verified
Raw
History Blame Contribute Delete
420 Bytes
#!/bin/bash
set -e
mkdir -p /home/user/.teldrive
cat > /home/user/.teldrive/config.toml << EOF
[db]
data-source = "${DB_URL}"
prepare-stmt = false
[db.pool]
enable = false
[jwt]
secret = "${JWT_SECRET}"
expiry = "876000h"
[tg]
app-id = ${TG_APP_ID}
app-hash = "${TG_APP_HASH}"
session-type = "postgres"
EOF
export TELDRIVE_COOKIE_SAME_SITE=none
export TELDRIVE_COOKIE_SECURE=false
teldrive run --server-port 7860