App without Web Interface?
-
Hello,
currently I am working on a package for https://forum.cloudron.io/topic/9616/chatgpt-telegram-bot
As this is a bot there is no web user interface. I get an error, when I leave out the httpPort in the CloudronManifest.
What is the best practice in such cases?
Best,
Mike -
Not sure about BEST practice.
I'd be tempted to put up a 'Nothing to see' type page which does nothing and just confirms service is running.
But I seem to recall that even that might not be necessary, if you can somehow return a 200 response without a page. -
IIRC the sample supervisor package has an example, but maybe this is not compatible with your package.
-
@timconsidine thanks, I will have a look
-
OnlyOffice doesn't really have a web app to interact with either so out of interest I just went to remind myself what one sees when going the URL that is installed on, see https://onlyoffice.uniteddiversity.coop/welcome/
I guess something similar (which is kinda what @timconsidine said anyways) would be good.
-
I think it shouldn't be too difficult to have just another python script that runs on any port and provide a "empty"/"Welcome" page and http status code 200.
From Cloudron Documentation httpPort and Healthcheck path is mandatory, so I don't see any other option.
-
Any thoughts @Staff?
-
Ok, I have added a python http server to provide a http 200 status code. After configuring the .env file, the App needs to be restarted from Admin Panel.
Repo is updated.
-
We have a few apps which don't really have a webui on http. For example https://git.cloudron.io/cloudron/synapse-app
So far as already suggested, we add a dummy http server with a website. We had some plans to support headless apps at some point. Seems like this comes up more often now then.