Ajout proxy postgresql
This commit is contained in:
143
templates/zabbix_web_service.conf.j2
Normal file
143
templates/zabbix_web_service.conf.j2
Normal file
@@ -0,0 +1,143 @@
|
||||
# This is a configuration file for Zabbix web_service
|
||||
# To get more information about Zabbix, visit https://www.zabbix.com
|
||||
|
||||
############ GENERAL PARAMETERS #################
|
||||
|
||||
### Option: LogType
|
||||
# Specifies where log messages are written to:
|
||||
# system - syslog
|
||||
# file - file specified with LogFile parameter
|
||||
# console - standard output
|
||||
#
|
||||
# Mandatory: no
|
||||
# Default:
|
||||
# LogType=file
|
||||
|
||||
### Option: LogFile
|
||||
# Log file name for LogType 'file' parameter.
|
||||
#
|
||||
# Mandatory: yes, if LogType is set to file, otherwise no
|
||||
# Default:
|
||||
# LogFile=/tmp/zabbix_web_service.log
|
||||
|
||||
LogFile=/var/log/zabbix/zabbix_web_service.log
|
||||
|
||||
### Option: LogFileSize
|
||||
# Maximum size of log file in MB.
|
||||
# 0 - disable automatic log rotation.
|
||||
#
|
||||
# Mandatory: no
|
||||
# Range: 0-1024
|
||||
# Default:
|
||||
# LogFileSize=1
|
||||
|
||||
LogFileSize=0
|
||||
|
||||
### Option: DebugLevel
|
||||
# Specifies debug level:
|
||||
# 0 - basic information about starting and stopping of Zabbix processes
|
||||
# 1 - critical information
|
||||
# 2 - error information
|
||||
# 3 - warnings
|
||||
# 4 - for debugging (produces lots of information)
|
||||
# 5 - extended debugging (produces even more information)
|
||||
#
|
||||
# Mandatory: no
|
||||
# Range: 0-5
|
||||
# Default:
|
||||
# DebugLevel=3
|
||||
|
||||
### Option: AllowedIP
|
||||
# List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
|
||||
# Incoming connections will be accepted only from the hosts listed here.
|
||||
# If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally
|
||||
# and '::/0' will allow any IPv4 or IPv6 address.
|
||||
# '0.0.0.0/0' can be used to allow any IPv4 address.
|
||||
# Example: AllowedIP=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.example.com
|
||||
#
|
||||
# Mandatory: yes
|
||||
# Default:
|
||||
# AllowedIP=
|
||||
|
||||
AllowedIP={{Server}}
|
||||
|
||||
### Option: ListenPort
|
||||
# Service will listen on this port for connections from the server.
|
||||
#
|
||||
# Mandatory: no
|
||||
# Range: 1024-32767
|
||||
# Default:
|
||||
# ListenPort=10053
|
||||
|
||||
### Option: Timeout
|
||||
# Spend no more than Timeout seconds on formatting dashboard as PDF
|
||||
#
|
||||
# Mandatory: no
|
||||
# Range: 1-30
|
||||
# Default:
|
||||
# Timeout=10
|
||||
|
||||
### Option: TLSAccept
|
||||
# What incoming connections to accept.
|
||||
# Specifies what type of connection to use:
|
||||
# unencrypted - accept connections without encryption
|
||||
# cert - accept connections secured with TLS and a certificate
|
||||
#
|
||||
# Mandatory: no
|
||||
# Default:
|
||||
{% if zabbix_crypt=="tls" %}
|
||||
TLSAccept=cert
|
||||
{% else %}
|
||||
TLSAccept=unencrypted
|
||||
{% endif %}
|
||||
|
||||
### Option: TLSCAFile
|
||||
# Full pathname of a file containing the top-level CA(s) certificates for
|
||||
# peer certificate verification.
|
||||
#
|
||||
# Mandatory: no
|
||||
# Default:
|
||||
{% if zabbix_crypt=="tls" %}
|
||||
TLSCAFile=/etc/zabbix/certs/{{zabbix_ca}}.crt
|
||||
{% else %}
|
||||
# TLSCAFile=
|
||||
{% endif %}
|
||||
|
||||
### Option: TLSCertFile
|
||||
# Full pathname of a file containing the service certificate or certificate chain.
|
||||
#
|
||||
# Mandatory: no
|
||||
# Default:
|
||||
{% if zabbix_crypt=="tls" %}
|
||||
TLSCertFile=/etc/zabbix/certs/{{zabbix_web}}.crt
|
||||
{% else %}
|
||||
# TLSCertFile=
|
||||
{% endif %}
|
||||
|
||||
### Option: TLSKeyFile
|
||||
# Full pathname of a file containing the service private key.
|
||||
#
|
||||
# Mandatory: no
|
||||
# Default:
|
||||
{% if zabbix_crypt=="tls" %}
|
||||
TLSKeyFile=/etc/zabbix/certs/{{zabbix_web}}.key
|
||||
{% else %}
|
||||
# TLSKeyFile=
|
||||
{% endif %}
|
||||
|
||||
### Option: IgnoreURLCertErrors
|
||||
# Ignore TLS certificate errors when accessing Frontend URL
|
||||
# 0 - do not ignore
|
||||
# 1 - ignore
|
||||
#
|
||||
# Mandatory: no
|
||||
# Default:
|
||||
IgnoreURLCertErrors=1
|
||||
|
||||
### Option: Include
|
||||
# You may include individual files or all files in a directory in the configuration file.
|
||||
#
|
||||
# Mandatory: no
|
||||
# Include=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user