mirror of
https://github.com/opnsense/plugins.git
synced 2025-12-10 00:09:10 -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>
|
||||
<type>select_multiple</type>
|
||||
<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>
|
||||
<id>redis.general.protected_mode</id>
|
||||
@ -24,7 +24,7 @@
|
||||
<id>redis.general.port</id>
|
||||
<label>TCP Listen Port</label>
|
||||
<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>
|
||||
<id>redis.general.log_level</id>
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
<Required>Y</Required>
|
||||
</enabled>
|
||||
<listen type="InterfaceField">
|
||||
<default>1</default>
|
||||
<Required>N</Required>
|
||||
<multiple>Y</multiple>
|
||||
</listen>
|
||||
@ -17,11 +16,11 @@
|
||||
<Required>Y</Required>
|
||||
</protected_mode>
|
||||
<port type="IntegerField">
|
||||
<MinimumValue>0</MinimumValue>
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>65536</MaximumValue>
|
||||
<Required>N</Required>
|
||||
<default>6379</default>
|
||||
<ValidationMessage>This must be a valid port number or 0.</ValidationMessage>
|
||||
<ValidationMessage>This must be a valid port number.</ValidationMessage>
|
||||
</port>
|
||||
<log_level type="OptionField">
|
||||
<Required>Y</Required>
|
||||
|
||||
@ -5,7 +5,7 @@ type:script
|
||||
message:starting redis
|
||||
|
||||
[stop]
|
||||
command:/usr/local/etc/rc.d/redis onestop
|
||||
command:/usr/local/etc/rc.d/redis stop
|
||||
parameters:
|
||||
type:script
|
||||
message:stopping redis
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user