Update nginx-vhost-config.sh for proxy
This commit is contained in:
parent
b69adb4f0a
commit
749f70ccbd
1 changed files with 5 additions and 1 deletions
|
@ -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 "}"
|
||||||
|
|
Loading…
Reference in a new issue