Nginx now logs original proxy src/dst hosts
gitea/salix/master This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-04-25 13:22:49 +02:00 committed by Joan Sanchez
parent be9f2f6694
commit 0a37922b94
1 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,12 @@
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
log_format upstreamlog
'[$time_local] $remote_addr -> $proxy_host:$upstream_addr '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log upstreamlog;
upstream back {
server back_1:3000;
server back_2:3000;