installation: Add ERL_EPMD_ADDRESS=127.0.0.1,::1 to services

[ci skip]
This commit is contained in:
Haelwenn (lanodan) Monnier 2020-03-11 07:51:46 +01:00
parent 953aece848
commit 3d3f1509f9
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 8 additions and 1 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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()
{

View file

@ -24,6 +24,7 @@ rc_check() {
}
rc_start() {
export ERL_EPMD_ADDRESS=127.0.0.1,::1
${rcexec} "cd pleroma; ${daemon} ${daemon_flags}"
}

View file

@ -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.