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


  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
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

Cloudron Forum

Apps | Demo | Docs | Install

KASM App Proxy with websockets

Scheduled Pinned Locked Moved Support
app proxy
11 Posts 3 Posters 84 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.
  • S Offline
    S Offline
    sufian.mughal
    wrote 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 Do not disturb
    girishG Do not disturb
    girish Staff
    wrote 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
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    replied to sufian.mughal 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?

    S 1 Reply Last reply
    0
  • S Offline
    S Offline
    sufian.mughal
    replied to girish last edited by
    #4

    @girish sure i will check and update here

    1 Reply Last reply
    1
  • S Offline
    S Offline
    sufian.mughal
    wrote 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 Do not disturb
    girishG Do not disturb
    girish Staff
    wrote 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 Do not disturb
    girishG Do not disturb
    girish Staff
    wrote 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 Do not disturb
    girishG Do not disturb
    girish Staff
    wrote 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.

    S robiR 2 Replies Last reply
    1
  • S Offline
    S Offline
    sufian.mughal
    replied to girish 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
  • robiR Offline
    robiR Offline
    robi
    replied to girish last edited by
    #10

    @girish Cloudron release or App Proxy release?

    Life of sky tech

    girishG 1 Reply Last reply
    0
  • girishG Do not disturb
    girishG Do not disturb
    girish Staff
    replied to robi last edited by
    #11

    @robi new cloudron release

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.