Last active
June 18, 2024 19:28
-
-
Save jonataaraujo/e6a85e2f2fdc9ff1a2c47f427ca8866e to your computer and use it in GitHub Desktop.
Arquivo de configuração /etc/nginx/conf.d/zabbix.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name SEU_IP; | |
root /usr/share/zabbix; | |
index index.php; | |
client_max_body_size 100M; | |
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_jsonrpc.php { | |
fastcgi_pass unix:/var/run/php/zabbix.sock; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
location ~ [^/]\.php(/|$) { | |
fastcgi_pass unix:/var/run/php/zabbix.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; | |
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 180; | |
fastcgi_read_timeout 180; | |
fastcgi_buffer_size 128k; | |
fastcgi_buffers 4 256k; | |
fastcgi_busy_buffers_size 256k; | |
fastcgi_temp_file_write_size 256k; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment