Update nginx-vhost-config.sh for proxy

This commit is contained in:
kjg 2021-08-13 10:51:24 +02:00
parent b69adb4f0a
commit 749f70ccbd

View file

@ -90,7 +90,7 @@ location ~ /_matrix|/_synapse {
proxy_set_header X-Forwarded-Proto \$scheme; proxy_set_header X-Forwarded-Proto \$scheme;
proxy_set_header Host \$http_host; proxy_set_header Host \$http_host;
proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Real-IP \$remote_addr;
proxy_pass http://localhost:8008; # proxy_pass http://localhost:8008;
location ~ /_synapse/metrics { location ~ /_synapse/metrics {
# service-monitoring.p6 (monitoring LAN). # service-monitoring.p6 (monitoring LAN).
@ -153,4 +153,8 @@ if [ -n "$REGISTER_WORKERS" ]; then
EOF EOF
fi fi
cat << EOF
proxy_pass http://localhost:8008;
EOF
echo "}" echo "}"