2017-08-24 04:13:50 +02:00
|
|
|
proxy_redirect off;
|
2023-04-13 16:58:03 +02:00
|
|
|
|
|
|
|
map $http_host $upstream_host {
|
|
|
|
default "$host";
|
|
|
|
~. "$http_host";
|
|
|
|
}
|
|
|
|
proxy_set_header Host $upstream_host;
|
|
|
|
|
2017-08-24 04:13:50 +02:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
2023-04-13 16:58:03 +02:00
|
|
|
|
|
|
|
map $http_x_forwarded_proto $upstream_scheme {
|
|
|
|
default "$scheme";
|
|
|
|
~. "$http_x_forwarded_proto";
|
|
|
|
}
|
|
|
|
proxy_set_header X-Url-Scheme $upstream_scheme;
|
|
|
|
proxy_set_header X-Forwarded-Proto $upstream_scheme;
|
|
|
|
|
2021-08-04 01:00:30 +02:00
|
|
|
client_max_body_size 505m;
|
2017-08-24 04:13:50 +02:00
|
|
|
client_body_buffer_size 128k;
|
|
|
|
proxy_connect_timeout 90;
|
|
|
|
proxy_send_timeout 90;
|
|
|
|
proxy_read_timeout 90;
|
2020-08-31 22:44:18 +02:00
|
|
|
proxy_buffer_size 128k;
|
|
|
|
proxy_buffers 4 256k;
|
2020-09-02 22:44:54 +02:00
|
|
|
proxy_busy_buffers_size 256k;
|
2021-08-04 01:00:30 +02:00
|
|
|
large_client_header_buffers 4 32k;
|