Skip to content

Commit 6b58bd1

Browse files
committed
test
1 parent f7a4282 commit 6b58bd1

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

install/simplelogin-install.sh

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,23 @@ chmod 700 /opt/simplelogin/.gnupg
9393

9494
cd /opt/simplelogin
9595
export FLASK_APP=server
96-
while IFS='=' read -r key value; do
97-
[[ -z "$key" || "$key" =~ ^# ]] && continue
98-
export "$key=$value"
99-
done </opt/simplelogin/.env
96+
export URL="http://${LOCAL_IP}"
97+
export EMAIL_DOMAIN="example.com"
98+
export SUPPORT_EMAIL="support@example.com"
99+
export EMAIL_SERVERS_WITH_PRIORITY='[(10, "localhost.")]'
100+
export POSTFIX_SERVER="localhost"
101+
export DB_URI="postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost/${PG_DB_NAME}"
102+
export FLASK_SECRET="${FLASK_SECRET}"
103+
export DKIM_PRIVATE_KEY_PATH="/opt/simplelogin/dkim/dkim.private"
104+
export GNUPGHOME="/opt/simplelogin/.gnupg"
105+
export LOCAL_FILE_UPLOAD="true"
106+
export UPLOAD_DIR="/opt/simplelogin/uploads"
107+
export DISABLE_ALIAS_SUFFIX="1"
108+
export WORDS_FILE_PATH="/opt/simplelogin/local_data/words.txt"
109+
export NAMESERVERS="1.1.1.1"
110+
export MEM_STORE_URI="redis://localhost:6379/1"
111+
export OPENID_PRIVATE_KEY_PATH="/opt/simplelogin/openid-rsa.key"
112+
export OPENID_PUBLIC_KEY_PATH="/opt/simplelogin/openid-rsa.pub"
100113
$STD .venv/bin/flask db upgrade
101114
$STD .venv/bin/python init_app.py
102115
msg_ok "Configured SimpleLogin"

0 commit comments

Comments
 (0)