-
Notifications
You must be signed in to change notification settings - Fork 157
conf
LostSymbol edited this page Apr 8, 2019
·
2 revisions
[etc]
;环境变量 dev beta prod
env = beta
;flask secret_key
secret_key = SecretKeyForFlask
[log]
;日志文件位置,supervisor启动的话日志文件默认在/var/log/supervisor目录
log-dir = /var/log/open-dnsdb/
debug = True
verbose = True
[DB]
;数据文件
connection=sqlite:////usr/local/open_dnsdb/dnsdb.db
; 邮件相关配置
[mail]
server = mail.server.corp.com
port = 25
from_addr = [email protected]
password = xxxxxx
alert_list = [email protected];[email protected]
info_list = [email protected];[email protected]
[web]
base_url = /
run-mode = werkzeug
bind = 0.0.0.0
debug = True
[gunicorn]
timeout=600
workers=4
worker_class = eventlet
daemon = False
loglevel = debug
ignore_healthcheck_accesslog=True
accesslog = /var/log/open-dnsdb/access.log
[api]
;dnsdb api url, 端口配置在etc/beta/dnsdb.conf
dnsdbapi_url=http://localhost:9001/api
;updater程序端口, 配置在etc/beta/dnsdb-updater.conf
dnsupdater_port = 9000
[etc]
allow_ip = 127.0.0.1
secret_key = SessionKeyForFalsk
[log]
log-file = dnsdb.log
[web]
port = 9001
[gunicorn]
bind = 0.0.0.0:9001
[view]
;view域名的访问控制文件所在主机组,多个主机组逗号分割
acl_groups = ViewSlave
cname_ttl = 300
;view域名所在的zone
view_zone = view.com
[etc]
tmp_dir=/usr/local/open-dnsdb/tmp
log_dir = /var/log/open-dnsdb
backup_dir=/usr/local/backup
pidfile=/usr/local/open-dnsdb/tmp/named_updater.pid
zone_update_interval = 5
allow_ip = 127.0.0.1
[log]
log-file = dnsdb_updater.log
[web]
port = 9000
[gunicorn]
bind = 0.0.0.0:9000
[bind_default]
;bind相关文件目录
named_dir = /var/named/chroot/etc
zone_dir = /var/named/chroot/var/named
acl_dir = /var/named/chroot/var/named
;bind相关命令
named_checkconf = /usr/sbin/named-checkconf
named_zonecheck = /usr/sbin/named-checkzone
mkrdns = /sbin/mkrdns
rndc = /usr/sbin/rndc
; 可选配置, 当主机组的配置和bind_default有差异时,配置差异项
[Master]
named_dir = /Users/guoliluo/qunar/var/named/chroot/etc
zone_dir = /Users/guoliluo/qunar/var/named/chroot/var/named