Browse Source

domoticz: support -ssldhparam config/command line option

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
lilik-openwrt-22.03
David Woodhouse 7 years ago
parent
commit
a4a5fcc245
2 changed files with 3 additions and 0 deletions
  1. +1
    -0
      utils/domoticz/files/domoticz.config
  2. +2
    -0
      utils/domoticz/files/domoticz.init

+ 1
- 0
utils/domoticz/files/domoticz.config View File

@ -5,6 +5,7 @@ config domoticz
# option sslcert '/path/to/ssl.crt'
# option sslkey '/path/to/ssl.key'
# option sslpass 'passphrase'
# option ssldhparam '/path/to/dhparam.pem'
option sslwww '0'
# CAUTION - by default, /var is not persistent accross reboots
# Don't forget the trailing / - domoticz requires it


+ 2
- 0
utils/domoticz/files/domoticz.init View File

@ -13,6 +13,7 @@ start_domoticz() {
config_get sslcert "$section" "sslcert"
config_get sslkey "$section" "sslkey"
config_get sslpass "$section" "sslpass"
config_get ssldhparam "$section" "ssldhparam"
config_get sslwww "$section" "sslwww"
config_get syslog "$section" "syslog"
config_get userdata "$section" "userdata"
@ -30,6 +31,7 @@ start_domoticz() {
procd_append_param command -sslwww "$sslwww"
[ -n "$sslkey" ] && procd_append_param command -sslkey "$sslkey"
[ -n "$sslpass" ] && procd_append_param command -sslpass "$sslpass"
[ -n "$ssldhparam" ] && procd_append_param command -ssldhparam "$ssldhparam"
} || procd_append_param command -sslwww 0
}


Loading…
Cancel
Save