www/squid: style

This commit is contained in:
Franco Fichtner
2025-12-09 15:27:43 +01:00
parent c93a745e72
commit c8a35ea27b
@@ -101,14 +101,14 @@
<Required>Y</Required>
</cache_mem>
<maximum_object_size type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>99999</MaximumValue>
<ValidationMessage>Specify a maximum object size (number of MBs).</ValidationMessage>
<MinimumValue>1</MinimumValue>
<MaximumValue>99999</MaximumValue>
<ValidationMessage>Specify a maximum object size (number of MBs).</ValidationMessage>
</maximum_object_size>
<maximum_object_size_in_memory type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>99999</MaximumValue>
<ValidationMessage>Specify a maximum object size in memory (number of KBs).</ValidationMessage>
<MinimumValue>1</MinimumValue>
<MaximumValue>99999</MaximumValue>
<ValidationMessage>Specify a maximum object size in memory (number of KBs).</ValidationMessage>
</maximum_object_size_in_memory>
<memory_cache_mode type="OptionField">
<BlankDesc>Default</BlankDesc>
@@ -279,27 +279,27 @@
<ValidationMessage>Please select a valid certificate from the list.</ValidationMessage>
</sslcertificate>
<sslnobumpsites type="CSVListField">
<Mask>/^([a-zA-Z0-9\.:\[\]\s\-]*?,)*([a-zA-Z0-9\.:\[\]\s\-]*)$/</Mask>
<ValidationMessage>Please enter ip addresses or domain names here.</ValidationMessage>
<Mask>/^([a-zA-Z0-9\.:\[\]\s\-]*?,)*([a-zA-Z0-9\.:\[\]\s\-]*)$/</Mask>
<ValidationMessage>Please enter ip addresses or domain names here.</ValidationMessage>
</sslnobumpsites>
<workers type="IntegerField">
<MinimumValue>1</MinimumValue>
<MaximumValue>100</MaximumValue>
<ValidationMessage>Worker number needs to be an integer value between 1 and 100.</ValidationMessage>
<MinimumValue>1</MinimumValue>
<MaximumValue>100</MaximumValue>
<ValidationMessage>Worker number needs to be an integer value between 1 and 100.</ValidationMessage>
</workers>
<ssl_crtd_storage_max_size type="IntegerField">
<Required>Y</Required>
<Default>4</Default>
<MinimumValue>1</MinimumValue>
<MaximumValue>65535</MaximumValue>
<ValidationMessage>Maximum size needs to be an integer value between 1 and 65535.</ValidationMessage>
<Required>Y</Required>
<Default>4</Default>
<MinimumValue>1</MinimumValue>
<MaximumValue>65535</MaximumValue>
<ValidationMessage>Maximum size needs to be an integer value between 1 and 65535.</ValidationMessage>
</ssl_crtd_storage_max_size>
<sslcrtd_children type="IntegerField">
<Required>Y</Required>
<Default>5</Default>
<MinimumValue>1</MinimumValue>
<MaximumValue>32</MaximumValue>
<ValidationMessage>The number of sslrtd children needs to be an integer value between 1 and 32.</ValidationMessage>
<Required>Y</Required>
<Default>5</Default>
<MinimumValue>1</MinimumValue>
<MaximumValue>32</MaximumValue>
<ValidationMessage>The number of sslrtd children needs to be an integer value between 1 and 32.</ValidationMessage>
</sslcrtd_children>
<snmp_enable type="BooleanField">
<Default>0</Default>
@@ -497,203 +497,203 @@
</authentication>
</forward>
<pac>
<proxy type="ArrayField">
<name type="TextField">
<Required>Y</Required>
<ValidationMessage>The proxy name must be set.</ValidationMessage>
<Constraints>
<check001>
<ValidationMessage>Proxy name should be unique.</ValidationMessage>
<type>UniqueConstraint</type>
</check001>
</Constraints>
</name>
<proxy_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<PROXY>Proxy</PROXY>
<DIRECT>Direct Connection (no Proxy)</DIRECT>
<HTTP>HTTP Proxy</HTTP>
<HTTPS>HTTPS Proxy</HTTPS>
<SOCKS>SOCKS</SOCKS>
<SOCKS4>SOCKS Version 4</SOCKS4>
<SOCKS5>SOCKS Version 5</SOCKS5>
</OptionValues>
</proxy_type>
<url type="TextField">
<ValidationMessage>This does not look like a valid proxy or direct connection.</ValidationMessage>
</url>
<description type="TextField">
<Mask>/^([\t\n\v\f\r 0-9a-zA-Z\-.,_\x{00A0}-\x{FFFF}]){1,255}$/u</Mask>
</description>
</proxy>
<match type="ArrayField">
<name type="TextField">
<Required>Y</Required>
<ValidationMessage>The match name must be set.</ValidationMessage>
<Constraints>
<check001>
<ValidationMessage>Match name should be unique.</ValidationMessage>
<type>UniqueConstraint</type>
</check001>
</Constraints>
</name>
<description type="TextField">
<Mask>/^([\t\n\v\f\r 0-9a-zA-Z\-.,_\x{00A0}-\x{FFFF}]){1,255}$/u</Mask>
</description>
<negate type="BooleanField">
<Default>0</Default>
<Required>Y</Required>
</negate>
<match_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<url_matches>URL Matches</url_matches>
<hostname_matches>Hostname Matches</hostname_matches>
<dns_domain_is>DNS Domain Is</dns_domain_is>
<destination_in_net>IP Is In Network</destination_in_net>
<my_ip_in_net>My IP Is In Network</my_ip_in_net>
<plain_hostname>Plain Hostname (No Dots Inside)</plain_hostname>
<is_resolvable>Is Resolvable</is_resolvable>
<dns_domain_levels>DNS Domain Levels (Count Of Dots)</dns_domain_levels>
<weekday_range>Weekday Range</weekday_range>
<date_range>Date Range</date_range>
<time_range>Time Range</time_range>
</OptionValues>
</match_type>
<hostname type="TextField"/>
<url type="TextField">
<Mask>/^[^"]*$/</Mask>
</url>
<network type="NetworkField"/>
<domain_level_from type="IntegerField">
<MinimumValue>0</MinimumValue>
<ValidationMessage>Minimum domain level must be bigger than 0.</ValidationMessage>
</domain_level_from>
<domain_level_to type="IntegerField">
<MinimumValue>0</MinimumValue>
<ValidationMessage>A hostname cannot have a negative count of levels.</ValidationMessage>
</domain_level_to>
<time_from type="IntegerField">
<MinimumValue>0</MinimumValue>
<ValidationMessage>The first hour of the day is 0.</ValidationMessage>
</time_from>
<time_to type="IntegerField">
<MinimumValue>0</MinimumValue>
<MaximumValue>23</MaximumValue>
<ValidationMessage>The last hour of the day is 23.</ValidationMessage>
</time_to>
<date_from type="OptionField">
<Required>Y</Required>
<OptionValues>
<JAN>January</JAN>
<FEB>February</FEB>
<MAR>March</MAR>
<APR>April</APR>
<MAY>May</MAY>
<JUN>June</JUN>
<JUL>July</JUL>
<AUG>August</AUG>
<SEP>September</SEP>
<OCT>October</OCT>
<NOV>November</NOV>
<DEC>December</DEC>
</OptionValues>
</date_from>
<date_to type="OptionField">
<Required>Y</Required>
<OptionValues>
<JAN>January</JAN>
<FEB>February</FEB>
<MAR>March</MAR>
<APR>April</APR>
<MAY>May</MAY>
<JUN>June</JUN>
<JUL>July</JUL>
<AUG>August</AUG>
<SEP>September</SEP>
<OCT>October</OCT>
<NOV>November</NOV>
<DEC>December</DEC>
</OptionValues>
</date_to>
<weekday_from type="OptionField">
<Required>Y</Required>
<OptionValues>
<MON>Monday</MON>
<TUE>Tuesday</TUE>
<WED>Wednesday</WED>
<THU>Thursday</THU>
<FRI>Friday</FRI>
<SAT>Saturday</SAT>
<SUN>Sunday</SUN>
</OptionValues>
</weekday_from>
<weekday_to type="OptionField">
<Required>Y</Required>
<OptionValues>
<MON>Monday</MON>
<TUE>Tuesday</TUE>
<WED>Wednesday</WED>
<THU>Thursday</THU>
<FRI>Friday</FRI>
<SAT>Saturday</SAT>
<SUN>Sunday</SUN>
</OptionValues>
</weekday_to>
</match>
<rule type="ArrayField">
<enabled type="BooleanField">
<Default>1</Default>
<Required>Y</Required>
</enabled>
<description type="TextField">
<Mask>/^([\t\n\v\f\r 0-9a-zA-Z\-.,_\x{00A0}-\x{FFFF}]){1,255}$/u</Mask>
</description>
<matches type="ModelRelationField">
<Model>
<queues>
<source>OPNsense.Proxy.Proxy</source>
<items>pac.match</items>
<display>name</display>
</queues>
</Model>
<Required>Y</Required>
<Multiple>Y</Multiple>
</matches>
<join_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<and>And</and>
<or>Or</or>
</OptionValues>
</join_type>
<match_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<if>If</if>
<unless>Unless</unless>
</OptionValues>
</match_type>
<proxies type="ModelRelationField">
<Sorted>Y</Sorted>
<Model>
<queues>
<source>OPNsense.Proxy.Proxy</source>
<items>pac.proxy</items>
<display>name</display>
</queues>
</Model>
<Required>Y</Required>
<Multiple>Y</Multiple>
</proxies>
</rule>
<proxy type="ArrayField">
<name type="TextField">
<Required>Y</Required>
<ValidationMessage>The proxy name must be set.</ValidationMessage>
<Constraints>
<check001>
<ValidationMessage>Proxy name should be unique.</ValidationMessage>
<type>UniqueConstraint</type>
</check001>
</Constraints>
</name>
<proxy_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<PROXY>Proxy</PROXY>
<DIRECT>Direct Connection (no Proxy)</DIRECT>
<HTTP>HTTP Proxy</HTTP>
<HTTPS>HTTPS Proxy</HTTPS>
<SOCKS>SOCKS</SOCKS>
<SOCKS4>SOCKS Version 4</SOCKS4>
<SOCKS5>SOCKS Version 5</SOCKS5>
</OptionValues>
</proxy_type>
<url type="TextField">
<ValidationMessage>This does not look like a valid proxy or direct connection.</ValidationMessage>
</url>
<description type="TextField">
<Mask>/^([\t\n\v\f\r 0-9a-zA-Z\-.,_\x{00A0}-\x{FFFF}]){1,255}$/u</Mask>
</description>
</proxy>
<match type="ArrayField">
<name type="TextField">
<Required>Y</Required>
<ValidationMessage>The match name must be set.</ValidationMessage>
<Constraints>
<check001>
<ValidationMessage>Match name should be unique.</ValidationMessage>
<type>UniqueConstraint</type>
</check001>
</Constraints>
</name>
<description type="TextField">
<Mask>/^([\t\n\v\f\r 0-9a-zA-Z\-.,_\x{00A0}-\x{FFFF}]){1,255}$/u</Mask>
</description>
<negate type="BooleanField">
<Default>0</Default>
<Required>Y</Required>
</negate>
<match_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<url_matches>URL Matches</url_matches>
<hostname_matches>Hostname Matches</hostname_matches>
<dns_domain_is>DNS Domain Is</dns_domain_is>
<destination_in_net>IP Is In Network</destination_in_net>
<my_ip_in_net>My IP Is In Network</my_ip_in_net>
<plain_hostname>Plain Hostname (No Dots Inside)</plain_hostname>
<is_resolvable>Is Resolvable</is_resolvable>
<dns_domain_levels>DNS Domain Levels (Count Of Dots)</dns_domain_levels>
<weekday_range>Weekday Range</weekday_range>
<date_range>Date Range</date_range>
<time_range>Time Range</time_range>
</OptionValues>
</match_type>
<hostname type="TextField"/>
<url type="TextField">
<Mask>/^[^"]*$/</Mask>
</url>
<network type="NetworkField"/>
<domain_level_from type="IntegerField">
<MinimumValue>0</MinimumValue>
<ValidationMessage>Minimum domain level must be bigger than 0.</ValidationMessage>
</domain_level_from>
<domain_level_to type="IntegerField">
<MinimumValue>0</MinimumValue>
<ValidationMessage>A hostname cannot have a negative count of levels.</ValidationMessage>
</domain_level_to>
<time_from type="IntegerField">
<MinimumValue>0</MinimumValue>
<ValidationMessage>The first hour of the day is 0.</ValidationMessage>
</time_from>
<time_to type="IntegerField">
<MinimumValue>0</MinimumValue>
<MaximumValue>23</MaximumValue>
<ValidationMessage>The last hour of the day is 23.</ValidationMessage>
</time_to>
<date_from type="OptionField">
<Required>Y</Required>
<OptionValues>
<JAN>January</JAN>
<FEB>February</FEB>
<MAR>March</MAR>
<APR>April</APR>
<MAY>May</MAY>
<JUN>June</JUN>
<JUL>July</JUL>
<AUG>August</AUG>
<SEP>September</SEP>
<OCT>October</OCT>
<NOV>November</NOV>
<DEC>December</DEC>
</OptionValues>
</date_from>
<date_to type="OptionField">
<Required>Y</Required>
<OptionValues>
<JAN>January</JAN>
<FEB>February</FEB>
<MAR>March</MAR>
<APR>April</APR>
<MAY>May</MAY>
<JUN>June</JUN>
<JUL>July</JUL>
<AUG>August</AUG>
<SEP>September</SEP>
<OCT>October</OCT>
<NOV>November</NOV>
<DEC>December</DEC>
</OptionValues>
</date_to>
<weekday_from type="OptionField">
<Required>Y</Required>
<OptionValues>
<MON>Monday</MON>
<TUE>Tuesday</TUE>
<WED>Wednesday</WED>
<THU>Thursday</THU>
<FRI>Friday</FRI>
<SAT>Saturday</SAT>
<SUN>Sunday</SUN>
</OptionValues>
</weekday_from>
<weekday_to type="OptionField">
<Required>Y</Required>
<OptionValues>
<MON>Monday</MON>
<TUE>Tuesday</TUE>
<WED>Wednesday</WED>
<THU>Thursday</THU>
<FRI>Friday</FRI>
<SAT>Saturday</SAT>
<SUN>Sunday</SUN>
</OptionValues>
</weekday_to>
</match>
<rule type="ArrayField">
<enabled type="BooleanField">
<Default>1</Default>
<Required>Y</Required>
</enabled>
<description type="TextField">
<Mask>/^([\t\n\v\f\r 0-9a-zA-Z\-.,_\x{00A0}-\x{FFFF}]){1,255}$/u</Mask>
</description>
<matches type="ModelRelationField">
<Model>
<queues>
<source>OPNsense.Proxy.Proxy</source>
<items>pac.match</items>
<display>name</display>
</queues>
</Model>
<Required>Y</Required>
<Multiple>Y</Multiple>
</matches>
<join_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<and>And</and>
<or>Or</or>
</OptionValues>
</join_type>
<match_type type="OptionField">
<Required>Y</Required>
<OptionValues>
<if>If</if>
<unless>Unless</unless>
</OptionValues>
</match_type>
<proxies type="ModelRelationField">
<Sorted>Y</Sorted>
<Model>
<queues>
<source>OPNsense.Proxy.Proxy</source>
<items>pac.proxy</items>
<display>name</display>
</queues>
</Model>
<Required>Y</Required>
<Multiple>Y</Multiple>
</proxies>
</rule>
</pac>
<error_pages>
<template type="TextField">
<Mask>/[0-9a-zA-Z\+\=\/]{20,}/u</Mask>
<ValidationMessage>File content should be in Base64-encoded ZIP format.</ValidationMessage>
</template>
<template type="TextField">
<Mask>/[0-9a-zA-Z\+\=\/]{20,}/u</Mask>
<ValidationMessage>File content should be in Base64-encoded ZIP format.</ValidationMessage>
</template>
</error_pages>
</items>
</model>