1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rallly_ynh.git synced 2024-09-03 20:16:16 +02:00
This commit is contained in:
Éric Gaspar 2024-02-15 19:02:35 +01:00
parent c8cb132f5a
commit 241f9e371e
2 changed files with 27 additions and 4 deletions

View file

@ -1,9 +1,32 @@
NEXT_PUBLIC_BASE_URL=http://__DOMAIN__
DATABASE_URL="postgres://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__?sslmode=disable\&connect_timeout=10",
# REQUIRED CONFIG
# A random 32-character secret key used to encrypt user sessions
SECRET_PASSWORD=__PASSWORD__
# The base url where this instance is accessible, including the scheme.
# Example: https://example.com
NEXT_PUBLIC_BASE_URL=http://__DOMAIN__
NEXT_PUBLIC_APP_BASE_URL=http://__DOMAIN__
# A connection string to your Postgres database
DATABASE_URL="postgres://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__?sslmode=disable\&connect_timeout=10"
# EMAIL CONFIG (required for sending emails)
# All outgoing emails will show this email as the sender's email address, which also serves as the support email.
SUPPORT_EMAIL=__EMAIL__
# The host address of your SMTP server
SMTP_HOST=__MAIN_DOMAIN__
# The port of your SMTP server
SMTP_PORT=25
# Set to "true" if SSL is enabled for your SMTP connection
SMTP_SECURE=false
SMTP_USER=__APP__
# The username (if auth is enabled on your SMTP server)
SMTP_USER=_APP__
# The password (if auth is enabled on your SMTP server)
SMTP_PWD=__MAIL_PWD__
# OPTIONAL CONFIG
# Comma separated list of email addresses that are allowed to register and login.
# You can use wildcard syntax to match a range of email addresses.
# Example: "john@example.com,jane@example.com" or "*@example.com"
ALLOWED_EMAILS=

View file

@ -36,7 +36,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=6
ynh_psql_execute_file_as_root --file="./db.sql" --database=$db_name
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# RESTORE SYSTEMD