From 8c2df1ee056e8406dbe9f857809fddc1e9b7aa8a Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Sep 2022 12:41:55 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'nginx/matrix.stpl'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/matrix.stpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/matrix.stpl b/nginx/matrix.stpl index 2dfdfee..9d83576 100644 --- a/nginx/matrix.stpl +++ b/nginx/matrix.stpl @@ -30,13 +30,13 @@ server { add_header Access-Control-Allow-Origin *; } location ~* ^(\/_matrix|\/_synapse) { - proxy_pass http://localhost:8008; + proxy_pass http://127.0.1.1:8008; proxy_set_header X-Forwarded-For $remote_addr; # Nginx by default only allows file uploads up to 1M in size # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml } location /admin/ { - proxy_pass http://localhost:8100/; + proxy_pass http://127.0.1.1:8100/; proxy_set_header X-Forwarded-For $remote_addr; }