diff options
author | lain <lain@soykaf.club> | 2019-09-30 13:57:54 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-09-30 13:57:54 +0200 |
commit | b923842e96e821afeb7bbfa0d098b9c5698281c5 (patch) | |
tree | 37d84255d7b97fc411f5c78378565a8f205a2120 /installation | |
parent | 6fe2f554c36be1ef03ac1d1104a78d0686f48a26 (diff) | |
parent | 74d8fadf3745a4b4203c2cead35b741554ccc439 (diff) | |
download | pleroma-b923842e96e821afeb7bbfa0d098b9c5698281c5.tar.gz pleroma-b923842e96e821afeb7bbfa0d098b9c5698281c5.zip |
Merge remote-tracking branch 'origin/develop' into reactions
Diffstat (limited to 'installation')
-rwxr-xr-x | installation/pleroma-mongooseim.cfg | 8 | ||||
-rw-r--r-- | installation/pleroma.nginx | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/installation/pleroma-mongooseim.cfg b/installation/pleroma-mongooseim.cfg index d7567321f..576f83541 100755 --- a/installation/pleroma-mongooseim.cfg +++ b/installation/pleroma-mongooseim.cfg @@ -215,7 +215,9 @@ ]} ]}, - { 5222, ejabberd_c2s, [ + %% If you want dual stack, you have to clone this entire config stanza + %% and change the bind to "::" + { {5222, "0.0.0.0"}, ejabberd_c2s, [ %% %% If TLS is compiled in and you installed a SSL @@ -246,7 +248,9 @@ %% {max_stanza_size, 65536} %% ]}, - { 5269, ejabberd_s2s_in, [ + %% If you want dual stack, you have to clone this entire config stanza + %% and change the bind to "::" + { {5269, "0.0.0.0"}, ejabberd_s2s_in, [ {shaper, s2s_shaper}, {max_stanza_size, 131072}, {protocol_options, ["no_sslv3"]} diff --git a/installation/pleroma.nginx b/installation/pleroma.nginx index 4da9918ca..7f48b614b 100644 --- a/installation/pleroma.nginx +++ b/installation/pleroma.nginx @@ -70,6 +70,7 @@ server { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # this is explicitly IPv4 since Pleroma.Web.Endpoint binds on IPv4 only # and `localhost.` resolves to [::0] on some systems: see issue #930 |