mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 16:41:24 +03:00
Fixed mailgun config not allowing custom hosts with ports
no issue - `mailgun()` expects the `host` option not to include a port but `url.host` will include the port, we instead want to use `url.hostname` which skips the port
This commit is contained in:
parent
56ceb1e312
commit
29d94e7814
@ -11,7 +11,7 @@ function createMailgun(config) {
|
|||||||
apiKey: config.apiKey,
|
apiKey: config.apiKey,
|
||||||
domain: config.domain,
|
domain: config.domain,
|
||||||
protocol: baseUrl.protocol,
|
protocol: baseUrl.protocol,
|
||||||
host: baseUrl.host,
|
host: baseUrl.hostname,
|
||||||
port: baseUrl.port,
|
port: baseUrl.port,
|
||||||
endpoint: baseUrl.pathname,
|
endpoint: baseUrl.pathname,
|
||||||
retry: 5
|
retry: 5
|
||||||
|
Loading…
Reference in New Issue
Block a user