Page 1 of 1

(SOLVED) Disable WEB UI, use API only

PostPosted: Wed Feb 03, 2021 9:15 am
by wwoosh
Dear team,
this project is priceless and monumental.
Thank you!

Is there a sane way to disable the WEB UI:
(http://192.168.1.184:23423/console/#/app/welcome)

and use exclusively API calls:
(curl --include --request PUT [....] http://localhost:23423/rest/repository)

to use Serviio?
My (medieval) way was to rename serviio-web-console.jar...
Yes it works, but that's how Fred Flinstone would have accomplished it!

Thanks again, cheers
WW

Re: Disable WEB UI, use API only

PostPosted: Sun Mar 07, 2021 7:12 pm
by Derz
The Web UI to the Serviio console port 23423/console/#/app/welcome is my primary means of interfacing to the server application for configuration of media and clients. It serves that purpose well. What is the benefit of disabling it? And how many would benefit if it were an option?

Re: Disable WEB UI, use API only

PostPosted: Sun Mar 07, 2021 10:16 pm
by atc98092
I believe Serviio can be managed via the API calls. But I too see no real benefit of disabling the web UI. It's far easier to maintain on a computer screen than using a phone or tablet. Yes, there's no login security for the console, but as long as you don't expose that port to the Internet only devices on your home network can access it. Not really a security danger. No one can delete your media, or alter it in any way. About all someone could do is remove the library locations, which doesn't touch the media itself.

Re: Disable WEB UI, use API only

PostPosted: Mon Mar 08, 2021 5:40 am
by wwoosh
Hello and thank you.
In my use case, Serviio management is done in centralized way and programmatically so I don't need UI at all.
Since my solution is a hack, I've asked here for a better one.
Have a nice day!

Re: Disable WEB UI, use API only

PostPosted: Mon Mar 08, 2021 2:23 pm
by atc98092
Your hack is likely the best way to proceed. I see a problem if there was a switch in the console to disable it. If someone disabled it by mistake, they would have no way to turn it back on.

Re: (SOLVED) Disable WEB UI, use API only

PostPosted: Mon Mar 08, 2021 3:14 pm
by wwoosh
Dear sir,
you are correct, a "disable UI" switch would be stupid by design.

PROBLEM:
- need to turn off the UI accessible at http://192.168.1.184:23423/console/

SOLUTION (Linux):
- log in to your server with ssh and execute these commands:

  Code:
sudo su
cd /opt/serviio-2.1/lib
mv serviio-web-console.jar backup.serviio-web-console.jar
reboot

I've marked the thread as "solved" for future reference.
Cheers,
WW