missing updates.

This commit is contained in:
Nick Craig
2022-03-10 16:30:49 -05:00
parent e8262946d7
commit 469ecadbbb
4 changed files with 17 additions and 14 deletions

View File

@@ -2,6 +2,4 @@ add_header X-Served-By $host;
proxy_set_header X-Forwarded-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass $forward_scheme://$server:$port$request_uri;
proxy_set_header X-Real-IP $remote_addr;

View File

@@ -45,8 +45,11 @@ http {
log_format proxy '[$time_local] $upstream_cache_status $upstream_status $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] [Sent-to $server] "$http_user_agent" "$http_referer"';
log_format standard '[$time_local] $status - $request_method $scheme $host "$request_uri" [Client $remote_addr] [Length $body_bytes_sent] [Gzip $gzip_ratio] "$http_user_agent" "$http_referer"';
log_format cloudwatch escape=json '{"time":"$time_iso8601","filename":"$request_filename","remoteIP":"$remote_addr","host":"$host","request":"$request","query":"$query_string","method":"$request_method","status":"$status","userAgent":"$http_user_agent","referer":"$http_referer"}';
access_log /data/logs/fallback_access.log proxy;
access_log /data/logs/fallback_access.cloudwatch.log cloudwatch;
# Dynamically generated resolvers file
include /etc/nginx/conf.d/include/resolvers.conf;