Browse Source

Change rights for use certificates ref #25493

* use utils.sh script to copy certificates and owner in posttemplate
* change vnc_proxy_cert and vnc_procy_key PATH in conf file
Gérald Schwartzmann 8 months ago
parent
commit
0f807b611b
2 changed files with 17 additions and 2 deletions
  1. 15
    0
      posttemplate/02-nebula-novnc
  2. 2
    2
      tmpl/sunstone-server.conf

+ 15
- 0
posttemplate/02-nebula-novnc View File

@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+###########
4
+## novnc ##
5
+###########
6
+
7
+. /usr/lib/eole/utils.sh
8
+
9
+# Install ssl files
10
+user=$(systemctl -p Group show --value opennebula-novnc)
11
+group=$(systemctl -p User show --value opennebula-novnc)
12
+novnc_conf_dir="/etc/one"
13
+InstallSSLFiles novnc $user $group ${novnc_conf_dir}/ssl root
14
+
15
+exit 0

+ 2
- 2
tmpl/sunstone-server.conf View File

@@ -117,8 +117,8 @@
117 117
 #
118 118
 :vnc_proxy_port: %%vnc_proxy_port_sunstone
119 119
 :vnc_proxy_support_wss: yes
120
-:vnc_proxy_cert: %%server_cert
121
-:vnc_proxy_key: %%server_key
120
+:vnc_proxy_cert: /etc/one/ssl/certs/novnc.crt
121
+:vnc_proxy_key: /etc/one/ssl/private/novnc.key
122 122
 :vnc_proxy_ipv6: false
123 123
 :vnc_request_password: false
124 124