From 7f7d7035e6e400dd75e4b744001add4474400503 Mon Sep 17 00:00:00 2001 From: primakov Date: Fri, 22 Mar 2024 13:24:12 +0300 Subject: [PATCH] more headers --- 443.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/443.conf b/443.conf index 17c7c73..bc69b63 100644 --- a/443.conf +++ b/443.conf @@ -62,7 +62,6 @@ server { } server { - # listen 80; listen 443 ssl http2; listen [::]:443 ssl http2; @@ -79,7 +78,12 @@ server { add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; + proxy_set_header Connection $http_connection; + proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; + 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 $scheme; proxy_pass http://85.143.175.152:3000/; # proxy_pass http://35.193.122.195/; }