Bonjour
Mon serveur YunoHost
Matériel: Olimex LIME 2 auto hébergement derrière freebox
Version de YunoHost: * (https://yunohost.org) 11.0.11 (stable).
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non / oui
Si oui, expliquer:
Si votre requête est liée à une applicatio, précisez son nom et sa version: app v1.0~ynh
Description du problème
J’aurais besoin d’un conseil sur le concept des hooks. Ai lu les liens du forum mais j’avoue que je n’ai pas tout saisi
En ce moment, j’ai
cat /etc/nginx/conf.d/default.d/redirect_to_admin.conf
location / {
return 302 https://crust.ovh ;
}
Afin qu’en cas de page non trouvé il me renvoie à la racine et non la page d’administration
C’est donc à la place de la configuration par défaut qui est
cat /etc/nginx/conf.d/default.d/redirect_to_admin.conf
location / {
return 302 https://$http_host/yunohost/admin;
}
Ce qui me vaut dans le diagnostic un éternel
=================================
System configurations (regenconf)[WARNING] Configuration file /etc/nginx/conf.d/default.d/redirect_to_admin.conf appears to have been manually modified.
- This is probably OK if you know what you’re doing! YunoHost will stop updating this file automatically… But beware that YunoHost upgrades could contain important recommended changes. If you want to, you can inspect the differences with ‘yunohost tools regen-conf nginx --dry-run --with-diff’ and force the reset to the recommended configuration with ‘yunohost tools regen-conf nginx --force’
Ayant vu le sujet sur les hook je suis hyper intéressé
Pour créer dans mon cas un hook, quelle est la marche à suivre ?
D’avance merci