Updating postinstall to configure stunnel refs #2009
parent
7c50c1f13f
commit
a5f42751f1
|
@ -167,6 +167,12 @@ configure_permissions(){
|
|||
chown -R opengnsys:www-data /opt/opengnsys/ogboot
|
||||
}
|
||||
|
||||
configure_stunnel(){
|
||||
cp /opt/opengnsys/ogboot/etc/stunnel-ogboot.service /etc/systemd/system/stunnel-ogboot.service
|
||||
sed -i "s|connect = __SERVERIP__:8443|connect = $OGBOOT_IP:8443|g" /opt/opengnsys/ogboot/etc/stunnel/stunnel-ogboot-client.conf
|
||||
|
||||
}
|
||||
|
||||
restart_services(){
|
||||
systemctl daemon-reload
|
||||
systemctl restart nginx
|
||||
|
@ -186,6 +192,7 @@ if [ "$1" = "configure" ] && [ -z "$2" ]; then
|
|||
install_oglive
|
||||
configure_ipxe
|
||||
configure_api
|
||||
configure_stunnel
|
||||
configure_nginx_and_fpm
|
||||
configure_samba
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ output = /var/log/opengnsys/stunnel-client-ogboot.log
|
|||
# === TUNEL TLS CLIENTE ===
|
||||
[api_tls_client]
|
||||
accept = 127.0.0.1:9443
|
||||
connect = 192.168.1.10:8443
|
||||
connect = __SERVERIP__:8443
|
||||
|
||||
# Certificado del cliente (presentado al servidor)
|
||||
cert = /opt/opengnsys/ogboot/etc/certificates/ogboot.crt
|
||||
|
|
Loading…
Reference in New Issue