summaryrefslogtreecommitdiffstats
path: root/modules-available/webinterface
diff options
context:
space:
mode:
authorSimon Rettberg2020-12-10 14:04:43 +0100
committerSimon Rettberg2020-12-10 14:04:43 +0100
commiteadc257f447bfdea0fd8b1cd00a112ee09d59a24 (patch)
treed37365803268567d199a2b5415921d1488ef6487 /modules-available/webinterface
parent[sysconfig] CustomModule: Add check for file ownership, add "fix" option (diff)
downloadslx-admin-eadc257f447bfdea0fd8b1cd00a112ee09d59a24.tar.gz
slx-admin-eadc257f447bfdea0fd8b1cd00a112ee09d59a24.tar.xz
slx-admin-eadc257f447bfdea0fd8b1cd00a112ee09d59a24.zip
[webinterface] Add config hook so client can enable SSL communication
Diffstat (limited to 'modules-available/webinterface')
-rw-r--r--modules-available/webinterface/baseconfig/getconfig.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/webinterface/baseconfig/getconfig.inc.php b/modules-available/webinterface/baseconfig/getconfig.inc.php
new file mode 100644
index 00000000..1bc5c1e3
--- /dev/null
+++ b/modules-available/webinterface/baseconfig/getconfig.inc.php
@@ -0,0 +1,6 @@
+<?php
+
+$file = '/opt/openslx/configs/modules/self-signed-ca.tar';
+if (is_file($file) && is_readable($file)) {
+ ConfigHolder::add('SLX_REMOTE_SSL', $_SERVER['SERVER_ADDR']);
+} \ No newline at end of file