changes for pleroma ip and port change

This commit is contained in:
creme 2020-02-27 11:30:21 +00:00
parent f44fb245e1
commit 3b5277276c
3 changed files with 7 additions and 6 deletions

View File

@ -252,9 +252,10 @@ if [ "$1" = "start" ]; then
# pleroma / social
# => apache2 proxy (http/https)
$IPT -w -t nat -A PREROUTING -d 5.199.136.29 -p tcp --dport 70 -j DNAT --to-destination 192.168.1.18:7070
$IPT -w -t nat -A PREROUTING -d 89.163.145.170 -p tcp --dport 7070 -j DNAT --to-destination 192.168.1.18:7070
$IPT -w -t nat -A POSTROUTING -d 192.168.1.3 -s 192.168.1.18 -j SNAT --to 89.163.145.170
$IPT -w -t nat -A POSTROUTING ! -d 192.168.1.0/24 -s 192.168.1.18 -j SNAT --to 89.163.145.170
$IPT -w -t nat -A POSTROUTING -d 192.168.1.3 -s 192.168.1.18 -j SNAT --to 5.199.136.29
$IPT -w -t nat -A POSTROUTING ! -d 192.168.1.0/24 -s 192.168.1.18 -j SNAT --to 5.199.136.29
# MASQUERADE.
#------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
### LISTS.ENVS.NET - lxc ###
server {
listen 5.199.136.29:80;
include snippets/listen.conf;
# include snippets/ddos_def.conf;
server_name lists.envs.net;
@ -9,7 +9,7 @@ server {
# SSL
server {
listen 5.199.136.29:443 ssl http2;
include snippets/listen_ssl.conf;
# include snippets/ddos_def.conf;
server_name lists.envs.net;

View File

@ -1,6 +1,6 @@
### PLEROMA.ENVS.NET - lxc ###
server {
include snippets/listen.conf;
listen 5.199.136.29:80;
# include snippets/ddos_mid.conf;
server_name pleroma.envs.net;
@ -9,7 +9,7 @@ server {
# SSL
server {
include snippets/listen_ssl.conf;
listen 5.199.136.29:443 ssl http2;
# include snippets/ddos_mid.conf;
server_name pleroma.envs.net;