Merge pull request 'Don't listen Erlang Port Mapper Daemon (4369/tcp) on 0.0.0.0' (#358) from r3g_5z/akkoma:close-open-ports into develop
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #358
This commit is contained in:
commit
24fe692070
7 changed files with 11 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
FROM hexpm/elixir:1.13.4-erlang-24.3.4.5-alpine-3.15.6
|
FROM hexpm/elixir:1.13.4-erlang-24.3.4.5-alpine-3.15.6
|
||||||
|
|
||||||
ENV MIX_ENV=prod
|
ENV MIX_ENV=prod
|
||||||
|
ENV ERL_EPMD_ADDRESS=127.0.0.1
|
||||||
|
|
||||||
ARG HOME=/opt/akkoma
|
ARG HOME=/opt/akkoma
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
MIX_ENV=prod
|
MIX_ENV=prod
|
||||||
|
ERL_EPMD_ADDRESS=127.0.0.1
|
||||||
DB_NAME=akkoma
|
DB_NAME=akkoma
|
||||||
DB_USER=akkoma
|
DB_USER=akkoma
|
||||||
DB_PASS=akkoma
|
DB_PASS=akkoma
|
||||||
|
|
|
@ -14,6 +14,9 @@ User=akkoma
|
||||||
; Declares that Akkoma runs in production mode.
|
; Declares that Akkoma runs in production mode.
|
||||||
Environment="MIX_ENV=prod"
|
Environment="MIX_ENV=prod"
|
||||||
|
|
||||||
|
; Don't listen epmd on 0.0.0.0
|
||||||
|
Environment="ERL_EPMD_ADDRESS=127.0.0.1"
|
||||||
|
|
||||||
; Make sure that all paths fit your installation.
|
; Make sure that all paths fit your installation.
|
||||||
; Path to the home directory of the user running the Akkoma service.
|
; Path to the home directory of the user running the Akkoma service.
|
||||||
Environment="HOME=/var/lib/akkoma"
|
Environment="HOME=/var/lib/akkoma"
|
||||||
|
|
|
@ -12,7 +12,8 @@ environment =
|
||||||
HOME=/home/akkoma,
|
HOME=/home/akkoma,
|
||||||
USER=akkoma,
|
USER=akkoma,
|
||||||
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/akkoma/bin:%(ENV_PATH)s",
|
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/akkoma/bin:%(ENV_PATH)s",
|
||||||
PWD=/home/akkoma/akkoma
|
PWD=/home/akkoma/akkoma,
|
||||||
|
ERL_EPMD_ADDRESS=127.0.0.1
|
||||||
stdout_logfile=/home/akkoma/logs/stdout.log
|
stdout_logfile=/home/akkoma/logs/stdout.log
|
||||||
stdout_logfile_maxbytes=50MB
|
stdout_logfile_maxbytes=50MB
|
||||||
stdout_logfile_backups=10
|
stdout_logfile_backups=10
|
||||||
|
|
|
@ -18,7 +18,8 @@ load_rc_config ${name}
|
||||||
: ${akkoma_user:=akkoma}
|
: ${akkoma_user:=akkoma}
|
||||||
: ${akkoma_home:=$(getent passwd ${akkoma_user} | awk -F: '{print $6}')}
|
: ${akkoma_home:=$(getent passwd ${akkoma_user} | awk -F: '{print $6}')}
|
||||||
: ${akkoma_chdir:="${akkoma_home}/akkoma"}
|
: ${akkoma_chdir:="${akkoma_home}/akkoma"}
|
||||||
: ${akkoma_env:="HOME=${akkoma_home} MIX_ENV=prod"}
|
: ${akkoma_env:="HOME=${akkoma_home} MIX_ENV=prod ERL_EPMD_ADDRESS=127.0.0.1"}
|
||||||
|
|
||||||
|
|
||||||
command=/usr/local/bin/elixir
|
command=/usr/local/bin/elixir
|
||||||
command_args="--erl \"-detached\" -S /usr/local/bin/mix phx.server"
|
command_args="--erl \"-detached\" -S /usr/local/bin/mix phx.server"
|
||||||
|
|
|
@ -31,6 +31,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export MIX_ENV=prod
|
export MIX_ENV=prod
|
||||||
|
export ERL_EPMD_ADDRESS=127.0.0.1
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need nginx postgresql
|
need nginx postgresql
|
||||||
|
|
|
@ -14,7 +14,7 @@ start_precmd="ulimit -n unlimited"
|
||||||
pidfile="/dev/null"
|
pidfile="/dev/null"
|
||||||
|
|
||||||
akkoma_chdir="${akkoma_home}/akkoma"
|
akkoma_chdir="${akkoma_home}/akkoma"
|
||||||
akkoma_env="HOME=${akkoma_home} MIX_ENV=prod"
|
akkoma_env="HOME=${akkoma_home} MIX_ENV=prod ERL_EPMD_ADDRESS=127.0.0.1"
|
||||||
|
|
||||||
check_pidfile()
|
check_pidfile()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue