Commit c7a48c9e authored by Dashamir Hoxha's avatar Dashamir Hoxha

Improving settings.sh etc.

parent e7c8554a
......@@ -32,4 +32,9 @@ cmd_config() {
# drush may create some files with wrong permissions, fix them
ds inject fix-file-permissions.sh
# get a letsencrypt SSL certificate
ds wsproxy ssl-cert
ds restart
}
......@@ -19,7 +19,6 @@ cmd_remake() {
# reinstall
ds remove
ds make
ds restart
# restore
local backup_file="backup-$full-$(date +%Y%m%d).tgz"
......
......@@ -4,10 +4,10 @@ source /host/settings.sh
### settings for the database and the drupal site
site_name="B-Translator"
site_mail="$GMAIL_ADDRESS"
site_mail="$ADMIN_EMAIL"
account_name=admin
account_pass="$ADMIN_PASS"
account_mail="$GMAIL_ADDRESS"
account_mail="$ADMIN_EMAIL"
### start site installation
sed -e '/memory_limit/ c memory_limit = -1' -i /etc/php/7.1/cli/php.ini
......
APP=btr_client/ds
### Docker settings.
IMAGE=btr_client
CONTAINER=bcl.example.org
DOMAIN="bcl.example.org"
IMAGE=$DOMAIN
CONTAINER=$DOMAIN
### Uncomment if this installation is for development.
DEV=true
......@@ -11,33 +11,34 @@ DEV=true
### Other domains.
[[ -n $DEV ]] && DOMAINS="dev.$DOMAIN tst.$DOMAIN"
### Admin settings.
ADMIN_PASS=123456
ADMIN_EMAIL=[email protected]
### Translation language of B-Translator Client.
### Can be: 'fr', 'de', 'sq' etc. or can be 'all'
TRANSLATION_LNG='all'
### DB settings
DBHOST=mariadb
DBPORT=3306
DBNAME=bcl_example_org
DBUSER=bcl_example_org
DBPASS=bcl_example_org
DBNAME=${DOMAIN//./_}
DBUSER=${DOMAIN//./_}
DBPASS=${DOMAIN//./_}
### SMTP server for sending notifications. You can build an SMTP server
### as described here:
### https://gitlab.com/docker-scripts/postfix/blob/master/INSTALL.md
### Comment out if you don't have a SMTP server and want to use
### a gmail account (as described below).
SMTP_SERVER=smtp.example.org
SMTP_DOMAIN=example.org
#SMTP_SERVER=smtp.example.org
#SMTP_DOMAIN=$DOMAIN
### Gmail account for notifications. This will be used by ssmtp.
### You need to create an application specific password for your account:
### https://www.lifewire.com/get-a-password-to-access-gmail-by-pop-imap-2-1171882
GMAIL_ADDRESS=[email protected]
GMAIL_PASSWD=
### Admin settings.
ADMIN_PASS=123456
### Translation language of B-Translator Client.
### Can be: 'fr', 'de', 'sq' etc. or can be 'all'
TRANSLATION_LNG='all'
#[email protected]
#GMAIL_PASSWD=
### Settings for OAuth2 Login.
OAUTH2_SERVER_URL='https://dev.btranslator.org'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment