Add compatibility workflows and integration tests (#1991)
Fixes #1986 Fixes #1994 - Updated .gitignore to include SSL certificate files. - Introduced new GitHub Actions workflows for testing compatibility with Zabbix versions 5.0, 6.0, 7.0, and 7.2. - Added integration tests for Zabbix API for each version, ensuring proper authentication and API version handling. - Updated Docker Compose files to support SSL configuration for Zabbix web services. - Removed deprecated default Docker Compose and bootstrap files. - Removed devenv for version 6.2.
This commit is contained in:
1
devenv/nginx/.htpasswd
Normal file
1
devenv/nginx/.htpasswd
Normal file
@@ -0,0 +1 @@
|
||||
admin:$apr1$hosO.9ex$D2pmswVRynvDoLE.bYs2C.
|
||||
29
devenv/nginx/default.conf
Normal file
29
devenv/nginx/default.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
server {
|
||||
listen 80 default;
|
||||
listen 443 ssl;
|
||||
root /var/www/html/;
|
||||
index index.php;
|
||||
|
||||
server_name localhost 127.0.0.1;
|
||||
ssl_certificate /etc/nginx/ssl/nginx.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl/nginx.key;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
||||
|
||||
auth_basic "Zabbix HTTP Auth";
|
||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
|
||||
# Prevent caching of authentication
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:8080/;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_buffering on;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user