mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
Add option to enable/disable local query logs (#2385)
This commit is contained in:
parent
590dcec258
commit
5cbc2e2664
4 changed files with 18 additions and 1 deletions
|
|
@ -5,6 +5,10 @@ such as DNSCrypt v2 and DNS-over-HTTPS.
|
|||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.10
|
||||
|
||||
* Add option to enable/disable local query logs
|
||||
|
||||
1.9
|
||||
|
||||
* Fix logging due to Phalcon4 update
|
||||
|
|
|
|||
|
|
@ -165,4 +165,11 @@
|
|||
<allownew>true</allownew>
|
||||
<help><![CDATA[Set a list of <a href="https://dnscrypt.info/public-servers">known servers</a> e.g. if you want to stick with Cisco only. You can also put your manually added servers here. Please use on your own risk.]]></help>
|
||||
</field>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.query_logs</id>
|
||||
<label>Enable query logs</label>
|
||||
<type>checkbox</type>
|
||||
<help>This will enable/disable local logs. This includes both [query_log] and [nx_log] as described in the DNSCrypt-Proxy documentation.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<model>
|
||||
<mount>//OPNsense/dnscryptproxy/general</mount>
|
||||
<description>dnscrypt-proxy configuration</description>
|
||||
<version>0.1.0</version>
|
||||
<version>0.1.1</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
|
|
@ -136,5 +136,9 @@
|
|||
<serverlist type="CSVListField">
|
||||
<Required>N</Required>
|
||||
</serverlist>
|
||||
<query_logs type="BooleanField">
|
||||
<default>1</default>
|
||||
<Required>Y</Required>
|
||||
</query_logs>
|
||||
</items>
|
||||
</model>
|
||||
|
|
|
|||
|
|
@ -118,6 +118,7 @@ cache_neg_max_ttl = {{ OPNsense.dnscryptproxy.general.cache_neg_max_ttl }}
|
|||
cache = false
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.dnscryptproxy.general.query_logs') and OPNsense.dnscryptproxy.general.query_logs == '1' %}
|
||||
[query_log]
|
||||
file = '/var/log/dnscrypt-proxy/query.log'
|
||||
format = 'tsv'
|
||||
|
|
@ -125,6 +126,7 @@ cache = false
|
|||
[nx_log]
|
||||
file = '/var/log/dnscrypt-proxy/nx.log'
|
||||
format = 'tsv'
|
||||
{% endif %}
|
||||
|
||||
[allowed_names]
|
||||
allowed_names_file = 'whitelist.txt'
|
||||
|
|
|
|||
Loading…
Reference in a new issue