summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-03-11 07:51:46 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-03-11 07:54:46 +0100
commit3d3f1509f90fac97f21f23422edd95537e29634c (patch)
tree2143fd8a56513e6f72c3546a0443bdc3beb35752
parent953aece84866a89bd3de8f6d3f5d30e2f9cfb4f3 (diff)
installation: Add ERL_EPMD_ADDRESS=127.0.0.1,::1 to servicesfix/epmd-loopback
[ci skip]
-rw-r--r--CHANGELOG.md4
-rwxr-xr-xinstallation/init.d/pleroma1
-rwxr-xr-xinstallation/netbsd/rc.d/pleroma2
-rwxr-xr-xinstallation/openbsd/rc.d/pleromad1
-rw-r--r--installation/pleroma.service1
5 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 59f7dfcdd..ee49f7396 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+## Unreleased
+### Changed
+- Make `epmd` listen only to localhost interfaces by setting `ERL_EPMD_ADDRESS=127.0.0.1,::1` to env.
+
## [2.0.0] - 2019-03-08
### Security
- Mastodon API: Fix being able to request enourmous amount of statuses in timelines leading to DoS. Now limited to 40 per request.
diff --git a/installation/init.d/pleroma b/installation/init.d/pleroma
index ed50bb551..490cb57ed 100755
--- a/installation/init.d/pleroma
+++ b/installation/init.d/pleroma
@@ -10,6 +10,7 @@ command_background=1
export PORT=4000
export MIX_ENV=prod
+export ERL_EPMD_ADDRESS=127.0.0.1,::1
# Ask process to terminate within 30 seconds, otherwise kill it
retry="SIGTERM/30/SIGKILL/5"
diff --git a/installation/netbsd/rc.d/pleroma b/installation/netbsd/rc.d/pleroma
index 1114668ee..60124bcd8 100755
--- a/installation/netbsd/rc.d/pleroma
+++ b/installation/netbsd/rc.d/pleroma
@@ -14,7 +14,7 @@ start_precmd="ulimit -n unlimited"
pidfile="/dev/null"
pleroma_chdir="${pleroma_home}/pleroma"
-pleroma_env="HOME=${pleroma_home} MIX_ENV=prod"
+pleroma_env="HOME=${pleroma_home} MIX_ENV=prod ERL_EPMD_ADDRESS=127.0.0.1,::1"
check_pidfile()
{
diff --git a/installation/openbsd/rc.d/pleromad b/installation/openbsd/rc.d/pleromad
index 19ac4bb51..5c49c4949 100755
--- a/installation/openbsd/rc.d/pleromad
+++ b/installation/openbsd/rc.d/pleromad
@@ -24,6 +24,7 @@ rc_check() {
}
rc_start() {
+ export ERL_EPMD_ADDRESS=127.0.0.1,::1
${rcexec} "cd pleroma; ${daemon} ${daemon_flags}"
}
diff --git a/installation/pleroma.service b/installation/pleroma.service
index 5dcbc1387..02d0995fd 100644
--- a/installation/pleroma.service
+++ b/installation/pleroma.service
@@ -11,6 +11,7 @@ Restart=on-failure
User=pleroma
; Declares that Pleroma runs in production mode.
Environment="MIX_ENV=prod"
+Environment="ERL_EPMD_ADDRESS=127.0.0.1,::1"
; Make sure that all paths fit your installation.
; Path to the home directory of the user running the Pleroma service.