Redirection problem: duckdns domain name for Nextcloud returns to yunohost server

Salut à tous / Hello !

J’ai une machine Yunohost qui contient Vaultwarden et une autre machine Windows 10 qui contient Seafile et Plex.

  • La machine Yunohost est accessible via un nom de domaine hébergé par une compagnie privée : monserveuryunohost.ca. Le nom de domaine a un certificat via LetsEncrypt et est donc accessible via http et https.
  • La machine Windows a une dizaine de disques durs géré via storage space en parité.
  • Je possède un compte Duckdns avec un nom de domaine utilisé par Seafile. Le module client Duckdns est installé sur la machine Windows pour s’assurer que l’adresse IP soit mis à jour si jamais elle change. Le serveur Seafile est accessble via le nom de domaine Duckdns : monadresseduckdns.duckdns.org:8000. Le nom de domaine n’a pas de certificat LetsEncrypt donc pas accessible via https.

- I have a Yunohost machine which contains Vaultwarden and another Windows 10 machine which contains Seafile and Plex.
- The Yunohost machine is accessible via a domain name hosted by a private company: monserveuryunohost.ca. The domain name has a certificate via LetsEncrypt and is therefore accessible via http and https.
- The Windows machine has about ten hard disks managed via storage space in parity.
- I have a Duckdns account with a domain name used by Seafile. The Duckdns client module is installed on the Windows machine to ensure that the IP address is updated if it ever changes. The Seafile server is accessible via the Duckdns domain name: myaddressduckdns.duckdns.org:8000. The domain name does not have a LetsEncrypt certificate so cannot be accessed via https.

CAUSE

  • Seafile sur Windows a été abandonné depuis un bail par la compagnie. Il y a des bogues récalcitrants. Il faut que je change de solution cloud pour mes données et celles de mes utilisateurs.

- Seafile on Windows has been discontinued by the company. There are bugs. I need to change the cloud solution for me and my users.

PROJET / PROJECT

  • Étant donné que l’ensemble de mes données sont sur le serveur Windows, j’essaie de passer à Nextcloud. J’ai installé Docker sur Windows, installé Nextcloud AIO et lancé Nextcloud AIO via ce tutoriel : Your Guide to the Nextcloud All-in-One on Windows 10 & 11! - Nextcloud
  • J’ai ouvert les ports nécessaires sur mon routeur lié à l’adresse IP de ma machine Windows.
  • Les ports utilisés par Nextcloud, et Yunohost ne sont pas les mêmes, à part le port 80 pour http et le port 443 pour https.

- Since all of my data is on Windows server, I am trying to switch to Nextcloud. I installed Docker on Windows, installed Nextcloud AIO and launched Nextcloud AIO via this tutorial: Your Guide to the Nextcloud All-in-One on Windows 10 & 11! - Nextcloud
- I opened the necessary ports on my router linked to the IP address of my Windows machine.
- The ports used by Nextcloud and Yunohost are not the same, except for port 80 for http and port 443 for https.

Code utilisé pour installé Nextcloud via Docker / Code used to install Nextcloud via Docker

docker run ^
–sig-proxy=false ^
–name nextcloud-aio-mastercontainer ^
–restart always ^
–publish 8084:80 ^
–publish 8888:8080 ^
–publish 8443:8443 ^
–volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config ^
–volume //var/run/docker.sock:/var/run/docker.sock:ro ^
-e NEXTCLOUD_DATADIR=“/run/desktop/mnt/host/d/ncdata” ^
nextcloud/all-in-one:latest

PROBLÈME / PROBLEM

- I am not able to access the Nextcloud interface. Every time I try via the “Open your Nextcloud” button, it sends me to the administrator page of my Yunohost server.
The url address linked to the button is: https://myaddressduckdns.duckdns.org.
The address obtained via a redirect that I ignore: https://monadresseduckdns.duckdns.org/yunohost/admin/#/login?redirect=%2F

QUESTION

  • Est-ce quelqu’un aurait une idée de la cause de cette redirection et comment faire en sorte que mon serveur Yunohost ne soit accessible que par monserveuryunohost.ca pour que je puisse accéder au serveur Nextcloud ?

- Does anyone have an idea of the cause of this redirect and how to ensure that my Yunohost server is only accessible by myyunohostserver.ca so that I can access the Nextcloud server?

POSSIBLE SOLUTIONS

  • Faire une redirection mais laquelle via une app comme Redirect dans Yunohost ? J’ai tenté mais je n’ai pas compris comment créer cette redirection.

- Make a redirect but which one via an app like Redirect in Yunohost? I tried but I did not understand how to create this redirect.

Merci / Thank you !