File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,15 @@ upstream benchq {
25
25
server 172.31.0.100:8084 fail_timeout=0;
26
26
}
27
27
28
+
29
+ map $remote_addr $log_ip {
30
+ "54.153.2.9" 0; # jenkins-worker-behemoth-1
31
+ "54.153.1.99" 0; # jenkins-worker-behemoth-2
32
+ "54.183.156.89" 0; # jenkins-worker-behemoth-3
33
+
34
+ default 1;
35
+ }
36
+
28
37
server {
29
38
listen 80;
30
39
return 301 https://$host$request_uri;
@@ -84,6 +93,7 @@ server {
84
93
# e.g.: <Context path="/artifactory" docBase="${artifactory.home}/webapps/artifactory.war" processTlds="false">
85
94
location /artifactory {
86
95
# limit_req zone=one burst=10000 nodelay;
96
+ access_log /var/log/nginx/access_artifactory.log combined if=$log_ip;
87
97
88
98
proxy_set_header Host $host;
89
99
proxy_set_header X-Real-IP $remote_addr;
You can’t perform that action at this time.
0 commit comments