• Discussions
  • Activity
  • Sign In
  • How it works
  • Superdesk Development
websocket
  • Vote Up0Vote Down Trond HusøTrond Husø November 2020
    Posts: 62Member
    Why is this happening?

    notification.ts:57 WebSocket connection to 'wss://localhost/ws' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

    I have changed localhost all over the place but still this happens.


  • 1 Comment sorted by
    • Votes
    • Date Added
  • Vote Up0Vote Down Trond HusøTrond Husø November 2020
    Posts: 62Member
    finally figured out what it was. A wrong configuration of websockets.

    Below you'll see what it shall look like.

    location /ws {
        proxy_pass http://localhost:5100;
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_read_timeout 3600;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";

        sub_filter 'http://localhost' 'https://superdesk.example.com';
    }
Add a Comment
Start a New Discussion

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories

  • All Discussions8,397
  • Sourcefabric
  • ↳ Announcements25
  • Newscoop
  • ↳ Newscoop Support2,189
  • ↳ Newscoop Development722
  • ↳ Newscoop Security13
  • ↳ Newscoop Documentation17
  • ↳ Newscoop Themes69
  • Airtime
  • ↳ Airtime Support3,139
  • ↳ Airtime Development1,286
  • ↳ Airtime Français146
  • ↳ Airtime Documentation14
  • ↳ Airtime Hacks102
  • ↳ Promote your station!37
  • ↳ Airtime Security11
  • Booktype
  • ↳ Booktype Support277
  • ↳ Booktype Development55
  • ↳ Booktype Documentation7
  • Superdesk
  • ↳ Superdesk Development264
  • ↳ Web Publisher21

Poll

No poll attached to this discussion.

Top Posters

  • Albert FR 1978
  • Martin Konecny 1860
  • Andrey Podshivalov 1526
  • Voisses Tech 1423
  • John Chewter 899
  • Daniel James 844
  • Roger Wilco 784
  • hoerich 627
  • Paul Baranowski 389
  • Cliff Wang 339