Migrate Drone CI proxy to openresty

This commit is contained in:
Râu Cao
2023-07-26 14:07:48 +02:00
parent 543b482adb
commit 53abc2ec9a
4 changed files with 9 additions and 15 deletions

View File

@@ -1,4 +1,3 @@
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
# Generated by Chef
upstream _drone {
<% @upstream_ip_addresses.each do |upstream_ip_address| -%>
@@ -8,7 +7,7 @@ upstream _drone {
server {
server_name <%= @server_name %>;
listen 443 ssl http2;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate <%= @ssl_cert %>;
@@ -33,4 +32,3 @@ server {
proxy_http_version 1.1;
}
}
<% end -%>