Page MenuHomeDevCentral

D45.diff
No OneTemporary

D45.diff

diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -101,6 +101,14 @@
PHABRICATOR_TITLE | / | Title of your instance, will be used in the future in our Docker maintenance Phabricator application.
PHABRICATOR_URL | phabricator.base-uri | If set, Phabricator will use it as canonical URL, and will serve Phabricator application to requests for this URL. Mandatory if you use static files separation or Phame.
+Environment you should pass if you use the recommended Mailgun mail adapter:
+
+Variable | Phabricator config variable | Description
+------------------------------|---------------------------------|------------
+PHABRICATOR_USE_MAILGUN | metamta.mail-adapter | If set, use Mailgun as mail adapter
+PHABRICATOR_DOMAIN | mailgun.domain | The domain of the Phabricator instance
+PHABRICATOR_MAILGUN_APIKEY | mailgun.api-key | Your Mailgun API key
+
Environment from linked containers:
Variable | Phabricator config variable | Description
diff --git a/files/usr/local/bin/setup-phabricator b/files/usr/local/bin/setup-phabricator
--- a/files/usr/local/bin/setup-phabricator
+++ b/files/usr/local/bin/setup-phabricator
@@ -16,8 +16,14 @@
fi
# Mail
-if [ -n "$PHABRICATOR_USE_MAILGUN" ] && [ -n "$PHABRICATOR_DOMAIN" ] ; then
- bin/config set mailgun.domain $PHABRICATOR_DOMAIN
+if [ -n "$PHABRICATOR_USE_MAILGUN" ]; then
+ bin/config set metamta.mail-adapter PhabricatorMailImplementationMailgunAdapter
+ if [ -n "$PHABRICATOR_DOMAIN" ]; then
+ bin/config set mailgun.domain $PHABRICATOR_DOMAIN
+ fi
+ if [ -n "$PHABRICATOR_MAILGUN_APIKEY" ]; then
+ bin/config set mailgun.api-key $PHABRICATOR_MAILGUN_APIKEY
+ fi
fi
# Installation

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 13, 07:44 (8 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2481502
Default Alt Text
D45.diff (1 KB)

Event Timeline