Add inspircd log stanza
This commit is contained in:
parent
fe8e28f690
commit
80ab2d8312
2 changed files with 65 additions and 12 deletions
roles/inspircd
|
@ -40,6 +40,26 @@ inspircd_motd: |2
|
||||||
C H H AAAAA N NN G G E M M E
|
C H H AAAAA N NN G G E M M E
|
||||||
CCCC H H A A N N GGGG EEEEE M M EEEEE
|
CCCC H H A A N N GGGG EEEEE M M EEEEE
|
||||||
|
|
||||||
|
inspircd_log_method: file
|
||||||
|
inspircd_log_types:
|
||||||
|
- CHANNELS
|
||||||
|
- COMMAND
|
||||||
|
- MODE
|
||||||
|
- MODULE
|
||||||
|
- SOCKET
|
||||||
|
- STARTUP
|
||||||
|
- core_channel
|
||||||
|
- core_oper
|
||||||
|
- core_reloadmodule
|
||||||
|
- m_sasl
|
||||||
|
- m_spanningtree
|
||||||
|
- m_ssl_gnutls
|
||||||
|
- m_sslinfo
|
||||||
|
- m_topiclock
|
||||||
|
inspircd_log_level: default
|
||||||
|
inspircd_log_target: inspircd.log
|
||||||
|
inspircd_log_flush: 20
|
||||||
|
|
||||||
inspircd_gnutls_profiles: {}
|
inspircd_gnutls_profiles: {}
|
||||||
|
|
||||||
inspircd_bind:
|
inspircd_bind:
|
||||||
|
|
|
@ -34,6 +34,14 @@
|
||||||
|
|
||||||
<files motd="/etc/inspircd/motd.txt">
|
<files motd="/etc/inspircd/motd.txt">
|
||||||
|
|
||||||
|
<log
|
||||||
|
method="{{ inspircd_log_method }}"
|
||||||
|
type="{{ inspircd_log_types | join(' ') }}"
|
||||||
|
level="{{ inspircd_log_level }}"
|
||||||
|
target="{{ inspircd_log_target }}"
|
||||||
|
flush="{{ inspircd_log_flush }}"
|
||||||
|
>
|
||||||
|
|
||||||
{% if 'ssl_gnutls' in inspircd_modules + inspircd_modules_additional %}
|
{% if 'ssl_gnutls' in inspircd_modules + inspircd_modules_additional %}
|
||||||
#
|
#
|
||||||
# TLS CONFIG
|
# TLS CONFIG
|
||||||
|
@ -43,18 +51,43 @@
|
||||||
<sslprofile
|
<sslprofile
|
||||||
name="{{ name }}"
|
name="{{ name }}"
|
||||||
provider="gnutls"
|
provider="gnutls"
|
||||||
{% if 'cafile' in profile %}cafile="{{ profile.cafile }}"{% endif %}
|
{% if 'cafile' in profile %}
|
||||||
{% if 'certfile' in profile %}certfile="{{ profile.certfile }}"{% endif %}
|
cafile="{{ profile.cafile }}"
|
||||||
{% if 'crlfile' in profile %}crlfile="{{ profile.crlfile }}"{% endif %}
|
{% endif %}
|
||||||
{% if 'dhfile' in profile %}dhfile="{{ profile.dhfile }}"{% endif %}
|
{% if 'certfile' in profile %}
|
||||||
{% if 'hash' in profile %}hash="{{ profile.hash }}"{% endif %}
|
certfile="{{ profile.certfile }}"
|
||||||
{% if 'cafile' in profile %}cafile="{{ profile.cafile }}"{% endif %}
|
{% endif %}
|
||||||
{% if 'keyfile' in profile %}keyfile="{{ profile.keyfile }}"{% endif %}
|
{% if 'crlfile' in profile %}
|
||||||
{% if 'mindhbits' in profile %}mindhbits="{{ profile.mindhbits }}"{% endif %}
|
crlfile="{{ profile.crlfile }}"
|
||||||
{% if 'outrecsize' in profile %}outrecsize="{{ profile.outrecsize }}"{% endif %}
|
{% endif %}
|
||||||
{% if 'priority' in profile %}priority="{{ profile.priority }}"{% endif %}
|
{% if 'dhfile' in profile %}
|
||||||
{% if 'requestclientcert' in profile %}requestclientcert="{{ profile.requestclientcert | ternary('yes', 'no') }}"{% endif %}
|
dhfile="{{ profile.dhfile }}"
|
||||||
{% if 'strictpriority' in profile %}strictpriority="{{ profile.strictpriority | ternary('yes', 'no') }}"{% endif %}>
|
{% endif %}
|
||||||
|
{% if 'hash' in profile %}
|
||||||
|
hash="{{ profile.hash }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'cafile' in profile %}
|
||||||
|
cafile="{{ profile.cafile }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'keyfile' in profile %}
|
||||||
|
keyfile="{{ profile.keyfile }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'mindhbits' in profile %}
|
||||||
|
mindhbits="{{ profile.mindhbits }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'outrecsize' in profile %}
|
||||||
|
outrecsize="{{ profile.outrecsize }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'priority' in profile %}
|
||||||
|
priority="{{ profile.priority }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'requestclientcert' in profile %}
|
||||||
|
requestclientcert="{{ profile.requestclientcert | ternary('yes', 'no') }}"
|
||||||
|
{% endif %}
|
||||||
|
{% if 'strictpriority' in profile %}
|
||||||
|
strictpriority="{{ profile.strictpriority | ternary('yes', 'no') }}"
|
||||||
|
{% endif %}
|
||||||
|
>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}{# ssl_gnutls in modules #}
|
{% endif %}{# ssl_gnutls in modules #}
|
||||||
|
|
Loading…
Add table
Reference in a new issue