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
1 changed files with 5 additions and 1 deletions

View File

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