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
  • Brite
  • 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 - Status | 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 1.7k 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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            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