mirror of https://git.envs.net/envs/ops.git
changes for pleroma ip and port change
This commit is contained in:
parent
f44fb245e1
commit
3b5277276c
|
@ -252,9 +252,10 @@ if [ "$1" = "start" ]; then
|
||||||
|
|
||||||
# pleroma / social
|
# pleroma / social
|
||||||
# => apache2 proxy (http/https)
|
# => 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 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.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 89.163.145.170
|
$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.
|
# MASQUERADE.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
### LISTS.ENVS.NET - lxc ###
|
### LISTS.ENVS.NET - lxc ###
|
||||||
server {
|
server {
|
||||||
listen 5.199.136.29:80;
|
include snippets/listen.conf;
|
||||||
# include snippets/ddos_def.conf;
|
# include snippets/ddos_def.conf;
|
||||||
server_name lists.envs.net;
|
server_name lists.envs.net;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ server {
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
server {
|
server {
|
||||||
listen 5.199.136.29:443 ssl http2;
|
include snippets/listen_ssl.conf;
|
||||||
# include snippets/ddos_def.conf;
|
# include snippets/ddos_def.conf;
|
||||||
server_name lists.envs.net;
|
server_name lists.envs.net;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
### PLEROMA.ENVS.NET - lxc ###
|
### PLEROMA.ENVS.NET - lxc ###
|
||||||
server {
|
server {
|
||||||
include snippets/listen.conf;
|
listen 5.199.136.29:80;
|
||||||
# include snippets/ddos_mid.conf;
|
# include snippets/ddos_mid.conf;
|
||||||
server_name pleroma.envs.net;
|
server_name pleroma.envs.net;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ server {
|
||||||
|
|
||||||
# SSL
|
# SSL
|
||||||
server {
|
server {
|
||||||
include snippets/listen_ssl.conf;
|
listen 5.199.136.29:443 ssl http2;
|
||||||
# include snippets/ddos_mid.conf;
|
# include snippets/ddos_mid.conf;
|
||||||
server_name pleroma.envs.net;
|
server_name pleroma.envs.net;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue