YunoHost-Apps / 13ft_ynh

13ft package for YunoHost
https://github.com/wasi-master/13ft
GNU Affero General Public License v3.0
8 stars 3 forks source link

port other than 5000 does not work #13

Open chri2 opened 3 months ago

chri2 commented 3 months ago

On my yunohost tcp:5000 is used by some other software and so the yunohost core assigned tcp:5001 during install to 13ft.

This is correctly reflected in the generated nginx.conf.

But the app itself tries to start on its default port tcp:5000 which fails, because the port is already taken by another listening daemon.

Without looking at the code or documentation (so do not take this as the correct way to fix the problem 😉) I greped inside the install_dir for 5000 and replaced one occurrence in each of these two files:

Then the systemd.service started and the page shows as expected.