SQSCANGHA-55 Add curl redirect and fix splatting of URL with special chars

This commit is contained in:
Antonio Aversa
2024-11-29 13:13:18 +01:00
committed by GitHub
parent f4eddd92b8
commit 1b442ee39a
5 changed files with 143 additions and 32 deletions

32
.github/qa-nginx-redirecting/nginx.conf vendored Normal file
View File

@@ -0,0 +1,32 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
server {
listen 8080;
location /health {
add_header 'Content-Type' 'text/plain';
return 200 "healthy\n";
}
location ~ /clientRedirectToSonarBinaries/(.*) {
return 301 "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/$1";
}
}
}