scalelite setup and greenlight setup on same server

101 views
Skip to first unread message

Rex

unread,
Jul 24, 2020, 2:44:42 AM7/24/20
to BigBlueButton-Setup
Hi All,

I have installed scalelite and greenlight on the same server.  i have configured nginx to listen to port 8443.

done the necesary changes in greenlight env file : 
bbb-endpoint : scalelite url
secret key : scalelite secret
safe host : scalelite host.

when i hit   : scalelite_host:8443  i get an nginx welcome page. 
but when i hit    scalelite_host:8443/b  i get  502 Bad Gateway.

i would like know what nginx configuration is required to run scalelite on the port 8443.

thanks

Martin Thomas Schrott

unread,
Jul 24, 2020, 8:42:51 AM7/24/20
to bigbluebu...@googlegroups.com, Rex
if you see the welcome page at :8443 nginx is configured for the port
correctly.


if you get 502 on /b the configuration of the

location /b

block is wrong or greenlight is not up and running at all.


hth

Martin


Rex

unread,
Jul 24, 2020, 11:19:19 AM7/24/20
to BigBlueButton-Setup
Hi Martin ,

greenlight is up and running ..i know its the issue with location block but unable to correct it. Below is my location block code : 

           location /b {
  proxy_pass          https://localhost:5000;
  proxy_set_header    Host              $host;
  proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
  proxy_set_header    X-Forwarded-Proto $scheme;
  proxy_http_version  1.1;
}

location /b/cable {
  proxy_pass          https://localhost:5000;
  proxy_set_header    Host              $host;
  proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
  proxy_set_header    X-Forwarded-Proto $scheme;
  proxy_set_header    Upgrade           $http_upgrade;
  proxy_set_header    Connection        "Upgrade";
  proxy_http_version  1.1;
  proxy_read_timeout  6h;
  proxy_send_timeout  6h;
  client_body_timeout 6h;
  send_timeout        6h;
}

i checked the error logs getting the following error : 
2020/07/24 17:04:57 [error] 3483#3483: *23 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking to upstream, client: xx.xx.xx.xx, server:  xyz.example.com  , request: "GET /b HTTP/1.1", upstream: "https://127.0.0.1:5000/b", host: "xyz.example.com:8443"
2020/07/24 17:12:38 [error] 21629#21629: *3 peer closed connection in SSL handshake (104: Connection reset by peer) while SSL handshaking to upstream, client: xx.xx.xx.xx, server: xyz.example.com, request: "GET /b HTTP/1.1", upstream: "https://127.0.0.1:5000/b", host: " xyz.example.com :8443"

if anyone can suggest something  that would be great.

Thanks



Martin Thomas Schrott

unread,
Jul 24, 2020, 2:56:16 PM7/24/20
to bigbluebu...@googlegroups.com, Rex

remove the https - use http for the proxy pass. I guess you do not provide a cert for localhost ;-)

hth

Martin

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-s...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-setup/91546578-c436-43c0-9d31-ed4c64383ef2n%40googlegroups.com.

Rex

unread,
Jul 27, 2020, 7:29:14 AM7/27/20
to BigBlueButton-Setup
Hi Martin,

after doing the above changes and other stuff iam still not able to get it up and running.
location /b {
  proxy_pass          http://localhost:5000;
  proxy_set_header    Host              $host;
  proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
  proxy_set_header    X-Forwarded-Proto $scheme;
  proxy_http_version  1.1;
}

location /b/cable {
  proxy_pass          http://localhost:5000;
  proxy_set_header    Host              $host;
  proxy_set_header    X-Forwarded-For   $proxy_add_x_forwarded_for;
  proxy_set_header    X-Forwarded-Proto $scheme;
  proxy_set_header    Upgrade           $http_upgrade;
  proxy_set_header    Connection        "Upgrade";
  proxy_http_version  1.1;
  proxy_read_timeout  6h;
  proxy_send_timeout  6h;
  client_body_timeout 6h;
  send_timeout        6h;
}

error log:
2020/07/27 13:16:18 [error] 21531#21531: *1 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server:  hostname.com  , request: "GET /b HTTP/1.1", upstream: "http://HOST-IP:5000/b", host: "hostname.com:8443"
2020/07/27 13:16:32 [error] 21531#21531: *5 open() "/usr/share/nginx/html/cable/b" failed (2: No such file or directory), client: xx.xx.xx.xx  , server:  hostname.com  , request: "GET /cable/b HTTP/1.1", host: " hostname.com:8443"
2020/07/27 13:16:39 [error] 21531#21531: *6 connect() failed (111: Connection refused) while connecting to upstream, client:  xx.xx.xx.xx  , server:  hostname.com  , request: "GET /b HTTP/1.1", upstream: " http://HOST-IP:5000/b", host: " hostname.com:8443"
2020/07/27 13:16:48 [error] 21531#21531: *9 open() "/usr/share/nginx/html/cable" failed (2: No such file or directory), client:  xx.xx.xx.xx, server:  hostname.com  , request: "GET /cable HTTP/1.1", host: " hostname.com  :8443"
2020/07/27 13:17:48 [error] 21531#21531: *15 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx  , server:  hostname.com  , request: "GET /b HTTP/1.1", upstream: " http://HOST-IP:5000/b", host: " hostname.com:8443"


If some could suggest me what changes can be done here to fix the issue it would be a great help.

Thanks
Reply all
Reply to author
Forward
0 new messages