Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Packaging & Development
  3. App without Web Interface?

App without Web Interface?

Scheduled Pinned Locked Moved App Packaging & Development
10 Posts 4 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kubernetes
    App Dev
    wrote on Jul 12, 2023, 8:23 AM last edited by
    #1

    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

    1 Reply Last reply
    1
    • T Offline
      T Offline
      timconsidine
      App Dev
      wrote on Jul 12, 2023, 8:51 AM last edited by
      #2

      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.

      1 Reply Last reply
      2
      • T Offline
        T Offline
        timconsidine
        App Dev
        wrote on Jul 12, 2023, 9:03 AM last edited by
        #3

        IIRC the sample supervisor package has an example, but maybe this is not compatible with your package.

        K 1 Reply Last reply Jul 12, 2023, 9:15 AM
        0
        • T timconsidine
          Jul 12, 2023, 9:03 AM

          IIRC the sample supervisor package has an example, but maybe this is not compatible with your package.

          K Offline
          K Offline
          Kubernetes
          App Dev
          wrote on Jul 12, 2023, 9:15 AM last edited by
          #4

          @timconsidine thanks, I will have a look

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jdaviescoates
            wrote on Jul 12, 2023, 1:21 PM last edited by
            #5

            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 use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            1
            • K Offline
              K Offline
              Kubernetes
              App Dev
              wrote on Jul 12, 2023, 1:27 PM last edited by
              #6

              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.

              1 Reply Last reply
              1
              • J Offline
                J Offline
                jdaviescoates
                wrote on Jul 12, 2023, 1:41 PM last edited by
                #7

                Any thoughts @Staff?

                I use Cloudron with Gandi & Hetzner

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  Kubernetes
                  App Dev
                  wrote on Jul 12, 2023, 2:08 PM last edited by
                  #8

                  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.

                  1 Reply Last reply
                  1
                  • N Offline
                    N Offline
                    nebulon
                    Staff
                    wrote on Jul 12, 2023, 2:45 PM last edited by
                    #9

                    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.

                    K 1 Reply Last reply Jul 12, 2023, 2:48 PM
                    2
                    • N nebulon
                      Jul 12, 2023, 2:45 PM

                      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.

                      K Offline
                      K Offline
                      Kubernetes
                      App Dev
                      wrote on Jul 12, 2023, 2:48 PM last edited by
                      #10

                      @nebulon Great, thanks for the information. I think having support for headless apps would be a nice feature in the future.

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes

                      9/10

                      Jul 12, 2023, 2:45 PM


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      9 out of 10
                      • First post
                        9/10
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search