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
Éric Gaspar 93a66bc657 add mail
2024-06-02 22:23:41 +02:00

34 lines
780 B
Bash

#!/usr/bin/env bash
cd "__INSTALL_DIR__/app"
# 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=localhost
export EMAIL_SMTP_PORT=25
export EMAIL_SMTP_ENABLE_STARTTLS='false'
export EMAIL_SMTP_USERNAME=__APP__
export EMAIL_SMTP_PASSWORD=__MAIL_PWD__
# 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 "$@"