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. Nginx setting to allow wss sockets to connect

Nginx setting to allow wss sockets to connect

Scheduled Pinned Locked Moved App Packaging & Development
5 Posts 3 Posters 903 Views 2 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.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #1

    Having run across this at a previous robotics project doing Tele-existence, things weren't connecting well.

    General idea of the config:

    https + proxy pass + virtual host

    Nginx as a proxy causes a failure of wss:// connections to the backend server.

    Add these parameters to the proxy section :

    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection “upgrade”;
    proxy_set_header Host $host;
    

    Voila

    Conscious tech

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

      Yup. FWIW, this is already enabled in Cloudron's nginx configuration for apps.

      imc67I 1 Reply Last reply
      0
      • girishG girish

        Yup. FWIW, this is already enabled in Cloudron's nginx configuration for apps.

        imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #3

        This looks like a similar issue with wss as in https://forum.cloudron.io/topic/3414/transcode-after-import-fails/23?_=1606977647141?

        girishG 1 Reply Last reply
        0
        • imc67I imc67

          This looks like a similar issue with wss as in https://forum.cloudron.io/topic/3414/transcode-after-import-fails/23?_=1606977647141?

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

          @imc67 I don't think @robi was reporting an issue, but just giving a helpful suggestion. Many apps already use wss on Cloudron like mattermost, rocket.chat (and Cloudron dashboard).

          imc67I 1 Reply Last reply
          1
          • girishG girish

            @imc67 I don't think @robi was reporting an issue, but just giving a helpful suggestion. Many apps already use wss on Cloudron like mattermost, rocket.chat (and Cloudron dashboard).

            imc67I Offline
            imc67I Offline
            imc67
            translator
            wrote on last edited by
            #5

            @girish ok, sorry, I think I was reading to fast and recognized wss: is an 503 error in PeerTube.

            Does the PeerTube app also has these settings?

            1 Reply Last reply
            0
            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