mirror of
https://github.com/opnsense/plugins.git
synced 2025-12-11 05:44:12 -06:00
databases/redis: add requested changes by @fichtner (#379)
* fix up some stuff in redis * don't allow to disable the TCP Port
This commit is contained in:
parent
a26e950698
commit
201ef5ea21
@ -12,7 +12,7 @@
|
|||||||
<label>Listen Interfaces</label>
|
<label>Listen Interfaces</label>
|
||||||
<type>select_multiple</type>
|
<type>select_multiple</type>
|
||||||
<style>selectpicker</style>
|
<style>selectpicker</style>
|
||||||
<help>Let the Redis server listen on non localhost interfaces.</help>
|
<help>Let the Redis server listen on non-localhost interfaces.</help>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<id>redis.general.protected_mode</id>
|
<id>redis.general.protected_mode</id>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<id>redis.general.port</id>
|
<id>redis.general.port</id>
|
||||||
<label>TCP Listen Port</label>
|
<label>TCP Listen Port</label>
|
||||||
<type>text</type>
|
<type>text</type>
|
||||||
<help>Enter a valid TCP port or 0 to disable the TCP port.</help>
|
<help>Enter a valid TCP port.</help>
|
||||||
</field>
|
</field>
|
||||||
<field>
|
<field>
|
||||||
<id>redis.general.log_level</id>
|
<id>redis.general.log_level</id>
|
||||||
|
|||||||
@ -8,7 +8,6 @@
|
|||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
</enabled>
|
</enabled>
|
||||||
<listen type="InterfaceField">
|
<listen type="InterfaceField">
|
||||||
<default>1</default>
|
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<multiple>Y</multiple>
|
<multiple>Y</multiple>
|
||||||
</listen>
|
</listen>
|
||||||
@ -17,11 +16,11 @@
|
|||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
</protected_mode>
|
</protected_mode>
|
||||||
<port type="IntegerField">
|
<port type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>1</MinimumValue>
|
||||||
<MaximumValue>65536</MaximumValue>
|
<MaximumValue>65536</MaximumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<default>6379</default>
|
<default>6379</default>
|
||||||
<ValidationMessage>This must be a valid port number or 0.</ValidationMessage>
|
<ValidationMessage>This must be a valid port number.</ValidationMessage>
|
||||||
</port>
|
</port>
|
||||||
<log_level type="OptionField">
|
<log_level type="OptionField">
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
|
|||||||
@ -5,7 +5,7 @@ type:script
|
|||||||
message:starting redis
|
message:starting redis
|
||||||
|
|
||||||
[stop]
|
[stop]
|
||||||
command:/usr/local/etc/rc.d/redis onestop
|
command:/usr/local/etc/rc.d/redis stop
|
||||||
parameters:
|
parameters:
|
||||||
type:script
|
type:script
|
||||||
message:stopping redis
|
message:stopping redis
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user