Updating postinstall to configure stunnel refs #2009

tls
Nicolas Arenas 2025-05-19 15:15:29 +02:00
parent 7c50c1f13f
commit a5f42751f1
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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