mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
C-ICAP: Allow disabling access.log (#274)
This commit is contained in:
@@ -77,4 +77,10 @@
|
||||
<type>text</type>
|
||||
<help>A name for this server. Used when displaying information about this server (logs, info service, etc).</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.enable_accesslog</id>
|
||||
<label>Enable access logging</label>
|
||||
<type>checkbox</type>
|
||||
<help>This will enable logging of access log.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
||||
@@ -58,5 +58,9 @@
|
||||
<default></default>
|
||||
<Required>N</Required>
|
||||
</servername>
|
||||
</items>
|
||||
<enable_accesslog type="BooleanField">
|
||||
<default>1</default>
|
||||
<Required>Y</Required>
|
||||
</enable_accesslog>
|
||||
</items>
|
||||
</model>
|
||||
|
||||
@@ -55,7 +55,9 @@ RemoteProxyUsers off
|
||||
RemoteProxyUserHeader X-Authenticated-User
|
||||
RemoteProxyUserHeaderEncoded on
|
||||
ServerLog /var/log/c-icap/server.log
|
||||
{% if helpers.exists('OPNsense.cicap.general.enable_accesslog') and OPNsense.cicap.general.enable_accesslog == '1' %}
|
||||
AccessLog /var/log/c-icap/access.log
|
||||
{% endif %}
|
||||
Service echo srv_echo.so
|
||||
Include virus_scan.conf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user