1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/fider_ynh.git synced 2024-09-03 18:36:11 +02:00
fider_ynh/conf/run_fider

33 lines
705 B
Text
Raw Normal View History

2022-10-06 14:42:19 +02:00
#!/usr/bin/env bash
2023-06-09 21:48:46 +02:00
cd "__INSTALL_DIR__/app"
2022-10-06 14:42:19 +02:00
# Public Host Name
export BASE_URL=https://__DOMAIN____PATH__
export PORT=__PORT__
# Connection string to the PostgreSQL database
export DATABASE_URL="postgres://__DB_USER__:__DB_PWD__@localhost:5432/__DB_NAME__?sslmode=disable"
# Generate a 512-bit secret
export JWT_SECRET=__SECRET__
# From which account e-mails will be sent
export EMAIL_NOREPLY=__APP__@__DOMAIN__
###
# EMAIL
###
export EMAIL_SMTP_HOST=127.0.0.1
export EMAIL_SMTP_PORT=25
export EMAIL_SMTP_ENABLE_STARTTLS='false'
# This file is provided to the administrator to customize OAuth etc.
if [[ -f "custom_fider_env" ]]; then
source custom_fider_env
fi
./fider migrate
./fider "$@"