bigbluebutton / greenlight

A really simple end-user interface for your BigBlueButton server.
GNU Lesser General Public License v3.0
794 stars 3.8k forks source link

Migrate from greenlight2 to greenlight v3 / need rewrite rule for /b to /rooms #5601

Closed awo-in-sachsen closed 10 months ago

awo-in-sachsen commented 10 months ago

Dear BBB / GL team

I updated from GL v2 to v3, but I have the problem that all rooms (we have around 100) can now only be reached via /rooms/. Where can I enter a rewrite rule so that /b/ roomname is translated to /rooms/ roomname? I tried it in /etc/nginx/sites-enabled/bigbluebutton but it doesn't work. Where does the redirection from / to /rooms take place?

Thanks for all the information and best regards and thanks for your work Jan

dirk-hl commented 10 months ago

The following redirect in the nginx configuration ensures the correct redirection, allowing the old v2 URLs to function as well:

location ~* /b/([a-z0-9]+)\-([a-z0-9]+)\-([a-z0-9]+)\-([a-z0-9]+) {
    return 307 https://bbb.meine-uni.de/rooms/$1-$2-$3-$4/join;
}

I have created this code snippet as an additional file in the Bigbluebutton/Greenlight nginx configuration named redirect_b_rooms.nginx.

awo-in-sachsen commented 10 months ago

Hello Dirk,

thank you very much for your help. It works wonderfully. I followed your advice and also created a "redirect_b_rooms.nginx" under "/usr/share/bigbluebutton/nginx". However, I adapted the rule ([\w-]+) because we also have rooms with descriptive names without a hyphen.

Many greetings and Merry Christmas Jan

awo-in-sachsen commented 10 months ago

My problem has been solved