Add OTEL build test and for NGINX v1.25 (#10889)
* Add OTEL build test * Simplify otel compilation * Remove http2 deprecated arg * Move image build to CI * Turn image from scratch to optimize usage * rollback image from scratch * Final reviews on nginx v1.25 image * Remove s390x from final image
This commit is contained in:
parent
c295cd1c4b
commit
02e6ebc95a
20 changed files with 247 additions and 409 deletions
|
|
@ -30,7 +30,7 @@ load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
|
|||
{{ end }}
|
||||
|
||||
{{ if (shouldLoadOpentelemetryModule $cfg $servers) }}
|
||||
load_module /modules_mount/etc/nginx/modules/otel/otel_ngx_module.so;
|
||||
load_module /etc/nginx/modules/otel_ngx_module.so;
|
||||
{{ end }}
|
||||
|
||||
daemon off;
|
||||
|
|
@ -658,6 +658,10 @@ http {
|
|||
server {
|
||||
server_name {{ buildServerName $server.Hostname }} {{range $server.Aliases }}{{ . }} {{ end }};
|
||||
|
||||
{{ if $cfg.UseHTTP2 }}
|
||||
http2 on;
|
||||
{{ end }}
|
||||
|
||||
{{ if gt (len $cfg.BlockUserAgents) 0 }}
|
||||
if ($block_ua) {
|
||||
return 403;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue