File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -41,4 +41,6 @@ security_policy_enforcement_mode: transparent
41
41
log_policy_filter_request_type : all
42
42
43
43
log_policy_syslog_target : 127.0.0.1:514
44
- nginx_demo_workload : http://10.1.1.1:8080
44
+
45
+ nginx_demo_workload_protocol : http://
46
+ nginx_demo_workload_host : 10.1.1.1:8080
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ http {
15
15
sendfile on;
16
16
keepalive_timeout 65;
17
17
18
+ upstream backend_hosts {
19
+ server {{ nginx_demo_workload_host }};
20
+ }
21
+
18
22
server {
19
23
listen 80;
20
24
server_name localhost;
28
32
location / {
29
33
client_max_body_size 0;
30
34
default_type text/html;
31
- proxy_pass {{ nginx_demo_workload }}$request_uri;
35
+ proxy_pass {{ nginx_demo_workload_protocol }}backend_hosts $request_uri;
32
36
}
33
37
}
34
38
}
You can’t perform that action at this time.
0 commit comments