From b742a0ef61edf68952ecb0cad4b01ebe2f362ba5 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 19 May 2024 13:36:06 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 07bc945..645a547 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -1261,6 +1261,13 @@ server { listen 80; charset UTF-8; client_max_body_size 2K; + + set $t1 $remote_addr; + if ($http_x_forwarded_for) + { + set $t1 $http_x_forwarded_for; + } + root %s; %s }