What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.12
How are you able to access your server: SSH
Describe your issue
Context
- I am using Yunohost 12 with multiple subdomains hosted on a self-hosted server.
- My main domain is
hom-e.fr
, and I have setperso.hom-e.fr
as the primary Yunohost domain. - My server is configured with Infomaniak as the registrar, and my DNS records are correctly set.
Problem Encountered
-
When I enter
perso.hom-e.fr
in my browser, Yunohost systematically redirects me to:https://hom-e.fr/yunohost/sso?r=aHR0cHM6Ly9wZXJzby5ob20tZS5mci8=
instead of directly loading the Yunohost portal on
perso.hom-e.fr
. -
The redirection appears to be enforced by SSOwat, because in my
/etc/ssowat/conf.json
file, all my subdomains (includingperso.hom-e.fr
) are associated with:"domain_portal_urls": { "perso.hom-e.fr": "hom-e.fr/yunohost/sso" }
whereas I would like
perso.hom-e.fr
to be used as the SSO portal instead ofhom-e.fr
. -
Even when manually modifying this file, Yunohost seems to regenerate the configuration and forces
hom-e.fr
as the main portal.
Actions Already Attempted
- Setting
hom-e.fr
as the default domain and then switching back toperso.hom-e.fr
, but this does not change anything. - Modifying
/etc/ssowat/conf.json
to replacehom-e.fr
withperso.hom-e.fr
indomain_portal_urls
, but the modification is overwritten by Yunohost. - Adding an explicit redirection in
redirected_urls
fromhom-e.fr
toperso.hom-e.fr
, but Yunohost still useshom-e.fr/yunohost/sso
. - Regenerating Yunohost’s configuration (
yunohost tools regen-conf --force
), without success. - Checking and modifying
/etc/nginx/conf.d/hom-e.fr.conf
to force a redirection, but Yunohost still redirectsperso.hom-e.fr
tohom-e.fr
.
Questions
- How can I force Yunohost to use
perso.hom-e.fr
as the main domain for the SSO portal instead ofhom-e.fr
? - Why does
/etc/ssowat/conf.json
keep enforcinghom-e.fr/yunohost/sso
as the login URL? - Is there a specific command or setting to make this change persistent?
Thank you in advance for your help.
Français
Titre : Redirection vers le portail Yunohost
Contexte
- J’utilise Yunohost 12 avec plusieurs sous-domaines hébergés sur un serveur auto-hébergé.
- Mon nom de domaine principal est
hom-e.fr
, et j’ai définiperso.hom-e.fr
comme le domaine principal de Yunohost. - Mon serveur est configuré avec Infomaniak comme registrar, et mes enregistrements DNS sont correctement configurés.
Problème rencontré
-
Lorsque je saisis
perso.hom-e.fr
dans mon navigateur, Yunohost me redirige systématiquement vers :https://hom-e.fr/yunohost/sso?r=aHR0cHM6Ly9wZXJzby5ob20tZS5mci8=
au lieu de charger directement le portail Yunohost sur
perso.hom-e.fr
. -
La redirection semble être imposée par SSOwat, car dans mon fichier
/etc/ssowat/conf.json
, tous mes sous-domaines (y comprisperso.hom-e.fr
) sont associés à :"domain_portal_urls": { "perso.hom-e.fr": "hom-e.fr/yunohost/sso" }
alors que je souhaite que
perso.hom-e.fr
soit utilisé comme portail SSO au lieu dehom-e.fr
. -
Même après modification manuelle de ce fichier, Yunohost semble régénérer la configuration et forcer
hom-e.fr
comme portail principal.
Actions déjà tentées
- Définir
hom-e.fr
comme domaine par défaut, puis repasser àperso.hom-e.fr
, sans succès. - Modifier
/etc/ssowat/conf.json
pour remplacerhom-e.fr
parperso.hom-e.fr
dansdomain_portal_urls
, mais la modification est écrasée par Yunohost. - Ajouter une redirection explicite dans
redirected_urls
dehom-e.fr
versperso.hom-e.fr
, mais Yunohost continue d’utiliserhom-e.fr/yunohost/sso
. - Régénérer la configuration de Yunohost (
yunohost tools regen-conf --force
), sans succès. - Vérifier et modifier
/etc/nginx/conf.d/hom-e.fr.conf
pour forcer une redirection, mais Yunohost continue de redirigerperso.hom-e.fr
vershom-e.fr
.
Questions
- Comment forcer Yunohost à utiliser
perso.hom-e.fr
comme domaine principal pour le portail SSO au lieu dehom-e.fr
? - Pourquoi
/etc/ssowat/conf.json
continue-t-il d’imposerhom-e.fr/yunohost/sso
comme URL de connexion ? - Existe-t-il une commande ou un paramètre spécifique pour rendre ce changement permanent ?
Merci d’avance pour votre aide.
Share relevant logs or error messages
https://paste.yunohost.org/raw/uwoyulevod
https://paste.yunohost.org/raw/uxiroliqag