Grafana SSL location

Hi,

This is something I am wondering for about 1 year and can’t find a solution.
I am using Grafana over SSL connection. SSL certificates are generated using NPM. Everything’s working well except that I have to copy the .pem files from HA_IP\addon_configs\a0d7b954_nginxproxymanager\letsencrypt\live\npm-13 to HA_IP\ssl\npm-13 everytime after renewal to keep it work with grafana.
I can’t change the path in grafana configuration while it seems that its only see the files inside HA_IP\ssl directory as stated in the log “Please ensure the certificate file exists and is placed in the ‘/ssl/’ directory.”
Is there a way to change the SSL directory pathway ?
I did it for other addons, but Grafana is the only one not working.
I add that I am using HassOS which might be more tricky
Thanks a lot :slight_smile:

One possibility would be to make an automatic copy of the newly created certificate from one directory to the other…
Creating a .sh file with

#!/bin/bash
CERTS_DIR="/addon_configs/a0d7b954_nginxproxymanager/letsencrypt/live/npm-13"
DEST_DIR="/ssl/npm-13"
# Vérifier si le répertoire source existe
if [ -d "$CERTS_DIR" ]; then
    echo "Répertoire source trouvé : $CERTS_DIR"
    cp -f $CERTS_DIR/* $DEST_DIR/

    if [ $? -eq 0 ]; then
        echo "Certificats copiés avec succès."
        chmod 644 $DEST_DIR/*
    else
        echo "Erreur lors de la copie des certificats."
    fi
else
    echo "Erreur : Le répertoire source n'existe pas."
fi

Then trying to execute it every day using a Home Assistant automation with the action :

action: hassio.addon_stdin
data:
  addon: core_ssh
  input: "/bin/bash /config/copy_cert.sh"

While the script works when manually executed in the terminal, it is not working in the automation… It says that the directory does not exist. Still on the way to try to figure it out…