Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # dpkg -l | grep zabbix
- ii zabbix-agent 1:5.4.10-1+ubuntu20.04 amd64 Zabbix network monitoring solution - agent
- ii zabbix-frontend-php 1:5.4.10-1+ubuntu20.04 all Zabbix network monitoring solution - PHP front-end
- ii zabbix-release 1:5.4-1+ubuntu20.04 all Zabbix official repository configuration
- ii zabbix-server-mysql 1:5.4.10-1+ubuntu20.04 amd64 Zabbix network monitoring solution - server (MySQL)
- ii zabbix-sql-scripts 1:5.4.10-1+ubuntu20.04 all Zabbix network monitoring solution - sql-scripts
- # NGINX config
- server {
- listen 443 ssl http2;
- server_name <my amazing domain>;
- access_log /var/log/nginx/monitor-access.log;
- error_log /var/log/nginx/monitor-error.log;
- ssl_certificate /etc/letsencrypt/live/<my amazing domain>/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/<my amazing domain>/privkey.pem;
- ssl_session_cache shared:SSL:10m;
- ssl_protocols TLSv1.2 TLSv1.3;
- ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
- ssl_prefer_server_ciphers on;
- # rewrite ^/(.*)/$ /$1 permanent;
- root /usr/share/zabbix;
- index index.php;
- location = /favicon.ico {
- log_not_found off;
- }
- location / {
- try_files $uri $uri/ =404;
- }
- location /assets {
- access_log off;
- expires 10d;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~ /(api\/|conf[^\.]|include|locale|vendor) {
- deny all;
- return 404;
- }
- location ~ [^/]\.php(/|$) {
- fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- fastcgi_index index.php;
- fastcgi_param DOCUMENT_ROOT /usr/share/zabbix;
- fastcgi_param SCRIPT_FILENAME /usr/share/zabbix$fastcgi_script_name;
- fastcgi_param PATH_TRANSLATED /usr/share/zabbix$fastcgi_script_name;
- fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
- include fastcgi_params;
- fastcgi_param QUERY_STRING $query_string;
- fastcgi_param REQUEST_METHOD $request_method;
- fastcgi_param CONTENT_TYPE $content_type;
- fastcgi_param CONTENT_LENGTH $content_length;
- fastcgi_intercept_errors on;
- fastcgi_ignore_client_abort off;
- fastcgi_connect_timeout 60;
- fastcgi_send_timeout 300;
- fastcgi_read_timeout 300;
- fastcgi_buffer_size 128k;
- fastcgi_buffers 4 256k;
- fastcgi_busy_buffers_size 256k;
- fastcgi_temp_file_write_size 256k;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement