File size: 420 Bytes
685f6ba b2df592 babc56e b2df592 d4f2a43 b2df592 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/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 |