From 394fcb483a7a325a38d22254aa47d91a230dd027 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 23 Jan 2021 19:57:43 +0900 Subject: [PATCH] =?UTF-8?q?nginx=E3=81=AE=E3=82=B5=E3=83=B3=E3=83=97?= =?UTF-8?q?=E3=83=AB=E3=81=AB=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0=20(#7113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/examples/misskey.nginx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/examples/misskey.nginx b/docs/examples/misskey.nginx index 6ed51f020..b558fb023 100644 --- a/docs/examples/misskey.nginx +++ b/docs/examples/misskey.nginx @@ -50,11 +50,13 @@ server { location / { proxy_pass http://127.0.0.1:3000; proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_redirect off; + + # If it's behind another reverse proxy or CDN, remove the following. proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; - proxy_http_version 1.1; - proxy_redirect off; # For WebSocket proxy_set_header Upgrade $http_upgrade;