Skip to content

Commit

Permalink
Merge pull request #7 from bigbluebutton/v2
Browse files Browse the repository at this point in the history
Update AWI V2 with Greenlight V2 before Migration to V3
  • Loading branch information
oktab1 authored Mar 11, 2024
2 parents 4cc94c7 + 04c7288 commit c3cc3b6
Show file tree
Hide file tree
Showing 14 changed files with 422 additions and 47 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.build.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
"${{ steps.ci_docker_repository.outputs.repository }}:v${{ steps.ci_tag_release_version.outputs.tag }}"
"${{ steps.ci_docker_repository.outputs.repository }}:v${{ steps.ci_tag_release_major.outputs.tag }}"
"${{ steps.ci_docker_repository.outputs.repository }}:v${{ steps.ci_tag_release_minor.outputs.tag }}"
"${{ steps.ci_docker_repository.outputs.repository }}:latest"
build-args: "version_code=release-${{ steps.ci_tag_release_version.outputs.tag }}"
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7.5-alpine3.14 AS base
FROM ruby:2.7.7-alpine3.16 AS base

# Set a variable for the install location.
ARG RAILS_ROOT=/usr/src/app
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'aws-sdk-s3', '~> 1.88.1'
gem 'bcrypt', '~> 3.1.7'
gem 'bigbluebutton-api-ruby', '~> 1.9'
gem 'bigbluebutton-api-ruby', '~> 1.9', '>= 1.9.0'
gem 'bn-ldap-authentication', '~> 0.1.4'
gem 'bootsnap', '~> 1.7.2', require: false
gem 'bootstrap', '~> 4.3.1'
Expand Down Expand Up @@ -59,7 +59,7 @@ end

group :development, :test do
gem 'byebug', '~> 11.1', platform: :mri
gem 'dotenv-rails', '~> 2.7', '>= 2.7.6'
gem 'dotenv-rails', '~> 2.8', '>= 2.8.1'
end

group :test do
Expand Down
86 changes: 51 additions & 35 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
aes_key_wrap (1.1.0)
arel (9.0.0)
ast (2.4.2)
Expand Down Expand Up @@ -85,7 +85,7 @@ GEM
rack (>= 1.6.11)
rubyzip (>= 1.3.0)
xml-simple (~> 1.1)
bindata (2.4.10)
bindata (2.4.13)
bindex (0.8.1)
bn-ldap-authentication (0.1.4)
net-ldap (~> 0)
Expand Down Expand Up @@ -114,11 +114,11 @@ GEM
digest-crc (0.6.4)
rake (>= 12.0.0, < 14.0.0)
docile (1.4.0)
dotenv (2.7.6)
dotenv-rails (2.7.6)
dotenv (= 2.7.6)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
railties (>= 3.2)
erubi (1.10.0)
erubi (1.11.0)
execjs (2.8.1)
factory_bot (6.2.1)
activesupport (>= 5.0.0)
Expand All @@ -127,7 +127,7 @@ GEM
railties (>= 5.0.0)
faker (2.21.0)
i18n (>= 1.8.11, < 2)
faraday (1.10.0)
faraday (1.10.2)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand All @@ -143,8 +143,8 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
Expand All @@ -153,7 +153,7 @@ GEM
ffi (1.15.5)
font-awesome-sass (5.9.0)
sassc (>= 1.11)
globalid (1.0.0)
globalid (1.0.1)
activesupport (>= 5.0)
google-apis-core (0.5.0)
addressable (~> 2.5, >= 2.5.1)
Expand Down Expand Up @@ -206,11 +206,12 @@ GEM
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.6.2)
json-jwt (1.14.0)
json-jwt (1.15.3)
activesupport (>= 4.2)
aes_key_wrap
bindata
jwt (2.3.0)
httpclient
jwt (2.5.0)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
Expand All @@ -220,7 +221,7 @@ GEM
activesupport (>= 4)
railties (>= 4)
request_store (~> 1.0)
loofah (2.18.0)
loofah (2.19.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mail (2.7.1)
Expand All @@ -230,23 +231,32 @@ GEM
method_source (1.0.0)
mini_mime (1.1.2)
mini_portile2 (2.8.0)
minitest (5.16.2)
minitest (5.17.0)
msgpack (1.5.1)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.1.1)
multipart-post (2.2.3)
net-ldap (0.17.0)
net-protocol (0.1.3)
timeout
net-smtp (0.3.2)
net-protocol
nio4r (2.5.8)
nokogiri (1.13.7)
nokogiri (1.13.10)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
oauth (0.5.10)
oauth2 (1.4.9)
oauth (1.1.0)
oauth-tty (~> 1.0, >= 1.0.1)
snaky_hash (~> 2.0)
version_gem (~> 1.1)
oauth-tty (1.0.5)
version_gem (~> 1.1, >= 1.1.1)
oauth2 (1.4.11)
faraday (>= 0.17.3, < 3.0)
jwt (>= 1.0, < 3.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (>= 1.2, < 3)
rack (>= 1.2, < 4)
omniauth (2.1.0)
hashie (>= 3.4.6)
rack (>= 2.2.3)
Expand Down Expand Up @@ -278,16 +288,17 @@ GEM
addressable (~> 2.5)
omniauth (>= 1.9, < 3)
openid_connect (~> 1.1)
openid_connect (1.3.0)
openid_connect (1.4.2)
activemodel
attr_required (>= 1.0.0)
json-jwt (>= 1.5.0)
rack-oauth2 (>= 1.6.1)
swd (>= 1.0.0)
json-jwt (>= 1.15.0)
net-smtp
rack-oauth2 (~> 1.21)
swd (~> 1.3)
tzinfo
validate_email
validate_url
webfinger (>= 1.0.1)
webfinger (~> 1.2)
os (1.1.4)
pagy (3.11.0)
parallel (1.22.1)
Expand All @@ -297,19 +308,19 @@ GEM
pluck_to_hash (1.0.2)
activerecord (>= 4.0.2)
activesupport (>= 4.0.2)
popper_js (1.16.0)
public_suffix (4.0.7)
popper_js (1.16.1)
public_suffix (5.0.0)
puma (4.3.12)
nio4r (~> 2.0)
racc (1.6.0)
rack (2.2.4)
rack-oauth2 (1.21.2)
racc (1.6.1)
rack (2.2.6.2)
rack-oauth2 (1.21.3)
activesupport
attr_required
httpclient
json-jwt (>= 1.11.0)
rack (>= 2.1.0)
rack-protection (2.2.1)
rack-protection (3.0.2)
rack
rack-test (2.0.2)
rack (>= 1.3)
Expand All @@ -333,8 +344,8 @@ GEM
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.4.3)
loofah (~> 2.3)
rails-html-sanitizer (1.4.4)
loofah (~> 2.19, >= 2.19.1)
railties (5.2.8.1)
actionpack (= 5.2.8.1)
activesupport (= 5.2.8.1)
Expand Down Expand Up @@ -415,6 +426,9 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
snaky_hash (2.0.1)
hashie
version_gem (~> 1.1, >= 1.1.1)
spring (2.1.1)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
Expand All @@ -438,6 +452,7 @@ GEM
thor (1.2.1)
thread_safe (0.3.6)
tilt (2.0.11)
timeout (0.3.0)
tins (1.31.1)
sync
trailblazer-option (0.1.2)
Expand All @@ -458,6 +473,7 @@ GEM
validate_url (1.0.15)
activemodel (>= 3.0.0)
public_suffix
version_gem (1.1.1)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
Expand All @@ -484,14 +500,14 @@ DEPENDENCIES
action-cable-testing (~> 0.6, >= 0.6.1)
aws-sdk-s3 (~> 1.88.1)
bcrypt (~> 3.1.7)
bigbluebutton-api-ruby (~> 1.9)
bigbluebutton-api-ruby (~> 1.9, >= 1.9.0)
bn-ldap-authentication (~> 0.1.4)
bootsnap (~> 1.7.2)
bootstrap (~> 4.3.1)
byebug (~> 11.1)
cancancan (~> 2.3.0)
coveralls (~> 0.8.23)
dotenv-rails (~> 2.7, >= 2.7.6)
dotenv-rails (~> 2.8, >= 2.8.1)
factory_bot_rails (~> 6.2, >= 6.2.0)
faker (~> 2.16)
font-awesome-sass (~> 5.9.0)
Expand Down
6 changes: 3 additions & 3 deletions app/controllers/health_check_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def all
@cache_expire = 10.seconds

begin
cache_check
database_check
email_check
cache_check if Rails.configuration.health_check_cache_enabled
database_check if Rails.configuration.health_check_db_enabled
email_check if Rails.configuration.health_check_email_enabled
rescue => e
response = "Health Check Failure: #{e}"
end
Expand Down
1 change: 1 addition & 0 deletions app/models/shared_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

class SharedAccess < ApplicationRecord
belongs_to :room
belongs_to :user
end
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,9 @@ def parse_bool(val, default = false)
config.max_avatar_size = ENV['MAX_AVATAR_SIZE'].to_i.zero? ? 100_000 : ENV['MAX_AVATAR_SIZE'].to_i

config.social_switching = ENV['SOCIAL_SWITCHING'] == "true"

config.health_check_cache_enabled = ENV.fetch('ENABLE_HEALTH_CHECK_CACHE', 'true').casecmp?('true')
config.health_check_db_enabled = ENV.fetch('ENABLE_HEALTH_CHECK_DB', 'true').casecmp?('true')
config.health_check_email_enabled = ENV.fetch('ENABLE_HEALTH_CHECK_EMAIL', 'true').casecmp?('true')
end
end
2 changes: 1 addition & 1 deletion config/locales/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ ar:
يستخدم هذا النشر خادم اختبار تمت تهيئته مسبقًا ، ويجب استبداله بخادمك الشخصي. لمزيد من التفاصيل ، اطلع على%{href} .
time:
formats:
default: "b %d, %Y %-I:%M%P%"
default: "%b %d, %Y %-I:%M%P"
update: تحديث
verify:
accept: تحقق
Expand Down
2 changes: 1 addition & 1 deletion config/locales/ar_IQ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ ar_IQ:
يستخدم هذا النشر خادم اختبار تمت تهيئته مسبقًا ، ويجب استبداله بخادمك الشخصي. لمزيد من التفاصيل ، اطلع على%{href} .
time:
formats:
default: "b %d, %Y %-I:%M%P%"
default: "%b %d, %Y %-I:%M%P"
update: تحديث
verify:
accept: تحقق
Expand Down
2 changes: 2 additions & 0 deletions config/locales/hu_HU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -683,3 +683,5 @@ hu_HU:
signin: A fiókod eléréséhez jelentkezz be.
title: Ellenőrizd a postaládádat
verification: Visszaigazolás
session:
expired: Munkameneted lejárt (jelentkezz be újra).
4 changes: 3 additions & 1 deletion config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ ru:
search:
start: Искать...
landing:
about: "%{href} это упрощенный веб интерфейс для вашего сервера веб конференций открытым исходным кодом BigBlueButton. Вы можете создавать свои собственные комнаты для проведения встреч или присоединяться к другим, используя короткую и удобную ссылку."
about: "%{href} это простой веб-интерфейс для сервера веб-конференций с открытым исходным кодом BigBlueButton. Вы можете создавать свои собственные комнаты для проведения встреч или присоединяться к другим, используя короткую и удобную ссылку."
welcome: Добро пожаловать в BigBlueButton.
video: Ознакомьтесь с нашим учебником по использованию Greenlight
upgrade: "Покажите мне, как обновить до 2.0!"
Expand Down Expand Up @@ -681,3 +681,5 @@ ru:
signin: Пожалуйста войдте для доступа к Вашему аккаунту.
title: Подтвердите Ваш электронный адрес email
verification: Проверка
session:
expired: "Время сеанса истекло, пожалуйста, войдите в систему повторно."
Loading

0 comments on commit c3cc3b6

Please sign in to comment.