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. Support
  3. KASM App Proxy with websockets

KASM App Proxy with websockets

Scheduled Pinned Locked Moved Solved Support
app proxy
11 Posts 3 Posters 2.0k Views 3 Watching
  • 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.
    • D Offline
      D Offline
      DualOSWinWiz
      wrote on last edited by girish
      #1

      Hi Cloudron team,

      I have a question: does the Cloudron App Proxy support websockets? The main issue I'm encountering is with running the workspaces of KASM until Login its working fine from Dashboard and other Admin related settings, but as soon as I launched amy workspace it hung on establishing secure connection and then crashed after few minutes and back to dashboard. After some research, I discovered that the problem is related to websocket support.

      I tested it on the NGINX proxy application, and initially, I faced the same error. However, once I enabled support for websockets, it started to work.

      Food for thought!

      ca74f62f-a7ad-4105-a6db-0bfc0a40ba0f-image.png

      girishG 1 Reply Last reply
      1
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        Yes, app proxy has websocket support. You can see proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; in the generated nginx config for the proxy.

        1 Reply Last reply
        0
        • D DualOSWinWiz

          Hi Cloudron team,

          I have a question: does the Cloudron App Proxy support websockets? The main issue I'm encountering is with running the workspaces of KASM until Login its working fine from Dashboard and other Admin related settings, but as soon as I launched amy workspace it hung on establishing secure connection and then crashed after few minutes and back to dashboard. After some research, I discovered that the problem is related to websocket support.

          I tested it on the NGINX proxy application, and initially, I faced the same error. However, once I enabled support for websockets, it started to work.

          Food for thought!

          ca74f62f-a7ad-4105-a6db-0bfc0a40ba0f-image.png

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          @sufian-mughal said in KASM App Proxy with websockets:

          I tested it on the NGINX proxy application, and initially, I faced the same error. However, once I enabled support for websockets, it started to work.

          Maybe you can quickly check what is the difference between the app proxy config that cloudron generates (it's under /etc/nginx/applications) and the one that you have?

          D 1 Reply Last reply
          0
          • girishG girish

            @sufian-mughal said in KASM App Proxy with websockets:

            I tested it on the NGINX proxy application, and initially, I faced the same error. However, once I enabled support for websockets, it started to work.

            Maybe you can quickly check what is the difference between the app proxy config that cloudron generates (it's under /etc/nginx/applications) and the one that you have?

            D Offline
            D Offline
            DualOSWinWiz
            wrote on last edited by
            #4

            @girish sure i will check and update here

            1 Reply Last reply
            1
            • D Offline
              D Offline
              DualOSWinWiz
              wrote on last edited by
              #5

              @girish sorry for the late reply please see attached imgae as nginx proxy manager settings

              Screenshot_20230916_151503_Edge.jpg

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #6

                @sufian-mughal do you have the raw nginx config ?

                If you can tell me a simple way to test your setup, that will help as well.

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  For fun, I tried to install kasm. It installed fine and I was able to setup an app proxy as well. However, launching any workspace gives me an error. Not sure how to proceed:

                  image.png

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #8

                    I got it to work.

                    image.png

                    @sufian-mughal A fix in the app proxy is needed, I will make a patch for next release.

                    D robiR 2 Replies Last reply
                    1
                    • girishG girish

                      I got it to work.

                      image.png

                      @sufian-mughal A fix in the app proxy is needed, I will make a patch for next release.

                      D Offline
                      D Offline
                      DualOSWinWiz
                      wrote on last edited by
                      #9

                      @girish sorry just saw your messages glad to know you already figure it out.... waiting for new release

                      1 Reply Last reply
                      0
                      • girishG girish

                        I got it to work.

                        image.png

                        @sufian-mughal A fix in the app proxy is needed, I will make a patch for next release.

                        robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #10

                        @girish Cloudron release or App Proxy release?

                        Conscious tech

                        girishG 1 Reply Last reply
                        0
                        • robiR robi

                          @girish Cloudron release or App Proxy release?

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #11

                          @robi new cloudron release

                          1 Reply Last reply
                          0
                          • girishG girish marked this topic as a question on
                          • girishG girish has marked this topic as solved on
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Bookmarks
                            • Search