Redirection to the Yunohost Portal Issue

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

english

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 set perso.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 (including perso.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 of hom-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

  1. Setting hom-e.fr as the default domain and then switching back to perso.hom-e.fr, but this does not change anything.
  2. Modifying /etc/ssowat/conf.json to replace hom-e.fr with perso.hom-e.fr in domain_portal_urls, but the modification is overwritten by Yunohost.
  3. Adding an explicit redirection in redirected_urls from hom-e.fr to perso.hom-e.fr, but Yunohost still uses hom-e.fr/yunohost/sso.
  4. Regenerating Yunohost’s configuration (yunohost tools regen-conf --force), without success.
  5. Checking and modifying /etc/nginx/conf.d/hom-e.fr.conf to force a redirection, but Yunohost still redirects perso.hom-e.fr to hom-e.fr.

Questions

  • How can I force Yunohost to use perso.hom-e.fr as the main domain for the SSO portal instead of hom-e.fr?
  • Why does /etc/ssowat/conf.json keep enforcing hom-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éfini perso.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 compris perso.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 de hom-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

  1. Définir hom-e.fr comme domaine par défaut, puis repasser à perso.hom-e.fr, sans succès.
  2. Modifier /etc/ssowat/conf.json pour remplacer hom-e.fr par perso.hom-e.fr dans domain_portal_urls, mais la modification est écrasée par Yunohost.
  3. Ajouter une redirection explicite dans redirected_urls de hom-e.fr vers perso.hom-e.fr, mais Yunohost continue d’utiliser hom-e.fr/yunohost/sso.
  4. Régénérer la configuration de Yunohost (yunohost tools regen-conf --force), sans succès.
  5. Vérifier et modifier /etc/nginx/conf.d/hom-e.fr.conf pour forcer une redirection, mais Yunohost continue de rediriger perso.hom-e.fr vers hom-e.fr.

Questions

  • Comment forcer Yunohost à utiliser perso.hom-e.fr comme domaine principal pour le portail SSO au lieu de hom-e.fr ?
  • Pourquoi /etc/ssowat/conf.json continue-t-il d’imposer hom-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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.