summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2018-05-22 16:50:27 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2018-06-04 11:11:23 +0100
commita4a5fcc245a7e70a25bee4e6525e9523005a208b (patch)
tree13d2a668ce683e4c5bd34da02bfb3150c5b82440 /utils
parent94aad53b39712ddd8dc060881a17c34fec5c0ac6 (diff)
domoticz: support -ssldhparam config/command line option
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/domoticz/files/domoticz.config1
-rw-r--r--utils/domoticz/files/domoticz.init2
2 files changed, 3 insertions, 0 deletions
diff --git a/utils/domoticz/files/domoticz.config b/utils/domoticz/files/domoticz.config
index b300f3f2d..870701c05 100644
--- a/utils/domoticz/files/domoticz.config
+++ b/utils/domoticz/files/domoticz.config
@@ -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
diff --git a/utils/domoticz/files/domoticz.init b/utils/domoticz/files/domoticz.init
index 26e0c42d4..16e986e5e 100644
--- a/utils/domoticz/files/domoticz.init
+++ b/utils/domoticz/files/domoticz.init
@@ -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
}