File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ add_pah_ports: false
29
29
use_freeipa : false
30
30
use_git : false
31
31
add_cluster_ports : false
32
+ use_haproxy : false
33
+ add_haproxy_ports : false
32
34
33
35
use_kvm : false
34
36
create_vm : false
Original file line number Diff line number Diff line change @@ -79,4 +79,24 @@ instance_ingress_security_rules:
79
79
destination_port_range:
80
80
max: 27199
81
81
min: 27199
82
- {% endif %}
82
+ {% endif %}
83
+ {% if add_haproxy_ports %}
84
+ - source: "10.0.0.0/24"
85
+ protocol: 6
86
+ tcp_options:
87
+ destination_port_range:
88
+ max: 80
89
+ min: 80
90
+ - source: "10.0.0.0/24"
91
+ protocol: 6
92
+ tcp_options:
93
+ destination_port_range:
94
+ max: 443
95
+ min: 443
96
+ - source: "10.0.0.0/24"
97
+ protocol: 6
98
+ tcp_options:
99
+ destination_port_range:
100
+ max: 8080
101
+ min: 8080
102
+ {% endif %}
Original file line number Diff line number Diff line change @@ -42,6 +42,31 @@ http {
42
42
# for more information.
43
43
include /etc/nginx/conf.d/*.conf;
44
44
45
+ {% if use_haproxy %}
46
+ server {
47
+ listen 8080 default_server;
48
+ listen [::]:8080 default_server;
49
+ server_name _;
50
+ root /usr/share/nginx/html;
51
+
52
+ # Load configuration files for the default server block.
53
+ include /etc/nginx/default.d/*.conf;
54
+
55
+ # OCI LB health check
56
+ location /nginx-health {
57
+ access_log off;
58
+ add_header 'Content-Type' 'text/plain';
59
+ return 200 "healthy\n";
60
+ }
61
+
62
+ location /health {
63
+ access_log off;
64
+ add_header 'Content-Type' 'application/json';
65
+ return 200 '{"status":"UP"}';
66
+ }
67
+ }
68
+ {% endif %}
69
+
45
70
# server {
46
71
# listen 80 default_server;
47
72
# listen [::]:80 default_server;
You can’t perform that action at this time.
0 commit comments