Integrate CrisisCleanup with Postfix

This commit is contained in:
Disassembler 2018-01-30 17:34:20 +01:00
parent 93a2918206
commit 6015df24b3
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/crisiscleanup
# Check prerequisites
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container

View File

@ -4,7 +4,7 @@ description="Crisis Cleanup docker container"
depend() {
need docker net
use dns logger netmount
use dns logger netmount postfix
after postgres
}
@ -12,6 +12,7 @@ start() {
/usr/bin/docker run -d --rm \
--name crisiscleanup \
-h crisiscleanup \
--link postfix \
--link postgres \
-p 127.0.0.1:8005:8005 \
-v /srv/crisiscleanup/conf:/srv/crisiscleanup/config \

View File

@ -16,7 +16,7 @@ Rails.application.configure do
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
ActionMailer::Base.smtp_settings = {
:address => '127.0.0.1'
:address => 'postfix'
}
config.action_mailer.default_url_options = {
:host => 'www.crisiscleanup.org',