Use latest sendmail configuration

This commit is contained in:
Girish Ramakrishnan 2016-05-05 23:07:17 -07:00
parent a52b15596b
commit bf95f923ef
2 changed files with 6 additions and 3 deletions

View File

@ -29,9 +29,10 @@ LANDING_PAGE = explore
[mailer] [mailer]
ENABLED = true ENABLED = true
HOST = ##MAIL_SERVER:##MAIL_PORT HOST = ##MAIL_SERVER:##MAIL_PORT
USER = USER = ##MAIL_SMTP_USERNAME
PASSWD = PASSWD = ##MAIL_SMTP_PASSWORD
FROM = ##MAIL_FROM FROM = ##MAIL_FROM
SKIP_VERIFY = true
[admin] [admin]

View File

@ -59,7 +59,9 @@ sed -e "s/##DOMAIN/${APP_DOMAIN}/g" \
-e "s/##MYSQL_DATABASE/${MYSQL_DATABASE}/g" \ -e "s/##MYSQL_DATABASE/${MYSQL_DATABASE}/g" \
-e "s/##MAIL_SERVER/${MAIL_SMTP_SERVER}/g" \ -e "s/##MAIL_SERVER/${MAIL_SMTP_SERVER}/g" \
-e "s/##MAIL_PORT/${MAIL_SMTP_PORT}/g" \ -e "s/##MAIL_PORT/${MAIL_SMTP_PORT}/g" \
-e "s/##MAIL_FROM/${MAIL_SMTP_USERNAME}@${MAIL_DOMAIN}/g" \ -e "s/##MAIL_FROM/${MAIL_FROM}/g" \
-e "s/##MAIL_SMTP_USERNAME/${MAIL_SMTP_USERNAME}/g" \
-e "s/##MAIL_SMTP_PASSWORD/${MAIL_SMTP_PASSWORD}/g" \
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \ -e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
/home/git/app.ini.template > "/run/gogs/app.ini" /home/git/app.ini.template > "/run/gogs/app.ini"