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

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

PostPosted: Thu Feb 03, 2022 10:27 pm
by Williamfox
Same problem, but I'll try what you advised here in the comments. I'm still just learning, and such questions are always some unbearable burden. I even get upset because I don't understand anything, but on the other hand, it gives me a huge motivation to learn design even more. It seems that this profession will only be more and more in demand on the market among specialists soon since almost everything needs graphic design now. So I would love to understand exactly how such problems are solved and expand the horizons of my knowledge

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

PostPosted: Thu Feb 03, 2022 11:47 pm
by atc98092
wwoosh wrote: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

The same result could be done on a Windows computer as well. They normally don't have an SSH server installed, but a local script could be written and run to accomplish the same thing. The file location would be C:\program files\Serviio\lib and instead of mv (Linux command) you could use ren. And have a second script to rename it back to the original name if the console UI is needed. Just remember that every time you update Serviio it will put a new version of the console jar file in place, so you'd have to run the script again. Also, a reboot isn't necessary. Just restart the Serviio process. On Linux a reboot might be simpler, as I don't know exactly how to restart the process on Linux.