Welcome! Log In Create A New Profile

Advanced

gzip proxy

MihaKot
November 17, 2022 02:50AM
Коллеги, день добрый.

Столкнулся с проблемой, и не могу понять где косяк.

есть сервер proxy (gate)
есть сервер приложения (client)

почему то не срабатывает сжатие. т.е. пользаку отдается не сжатый контент.

конфиг на клиенте

gzip on; # Enable Gzip compressed.

gzip_http_version 1.1;

gzip_comp_level 5;

gzip_min_length 1000;

gzip_proxied any;

gzip_vary on;

gzip_types
text/css
text/*
text/javascript
message/*
application/x-javascript
application/json
application/xml
application/atom+xml
application/xaml+xml;


конфиг на gate


server {
listen *:443 ssl http2;
index index.html;
server_name *****.ru;
client_max_body_size 0;

ssl_certificate /etc/nginx/ssl/***.ru/cert.pem;
ssl_certificate_key /etc/nginx/ssl/****.ru/key.pem;

include conf.d/ssl.conf;
include conf.d/headers.conf;
#include conf.d/_gzip.conf;

location / {
proxy_pass http://cluster_host;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
port_in_redirect off;
proxy_connect_timeout 120;
}
location ~ /.well-known {
allow all;
#alias /usr/share/nginx/html/.well-known;
root /usr/share/nginx/html/;
}
}

--
P.S. Сохраняйте переписку в теле письма.
___________________________________
Best regards, Konstantin @MihaKot@ Aksarin.
Phone: +7 921 74 66 818
Skype: mihakot
E-mail: mihakot@gmail.com
_______________________________________________
nginx-ru mailing list -- nginx-ru@nginx.org
To unsubscribe send an email to nginx-ru-leave@nginx.org
Subject Author Posted

gzip proxy

MihaKot November 17, 2022 02:50AM

Re: gzip proxy

Maxim Dounin November 17, 2022 10:48AM

Re: gzip proxy

MihaKot November 17, 2022 10:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready