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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Nginx setting to allow wss sockets to connect

    App Packaging & Development
    3
    5
    186
    Loading More Posts
    • 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.
    • robi
      robi last edited by

      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

      Life of Advanced Technology

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

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

        imc67 1 Reply Last reply Reply Quote 0
        • imc67
          imc67 translator @girish last edited by

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

          girish 1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @imc67 last edited by

            @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).

            imc67 1 Reply Last reply Reply Quote 1
            • imc67
              imc67 translator @girish last edited by

              @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 Reply Quote 0
              • First post
                Last post
              Powered by NodeBB