# BigBlueButton 內網安裝 * Port 設定 1. TCP/IP port 22 (for SSH-遠端登入,如果你機器是GUI介面就不用) 2. TCP/IP ports 80/443 (for HTTP/HTTPS-網站連通) 3. UDP ports in the range 16384 - 32768 (for FreeSWITCH/HTML5 client RTP streams-視訊跟音訊使用,未開放就只能以純文字進行會議) ## 一、 安裝好預設環境 1. QNAP NAS環境設定 a. 安裝 VirtualizationStation 3 b. 建立 虛擬機(Ubuntu 16.04) 3. 參考 https://github.com/bigbluebutton/bbb-install 後面帶`-g` 安裝"GreenLight" `wget -qO- https://ubuntu.bigbluebutton.org/bbb-install.sh | bash -s -- -v xenial-220 -g` ## 二、SSL相關設定 ### 1. 建立 `ssl.conf` 設定檔 [req] prompt = no default_md = sha256 default_bits = 2048 distinguished_name = dn x509_extensions = v3_req [dn] C = TW ST = Taiwan L = Taipei O = your Organization OU = your Organization unit emailAddress = admin@example.com CN = localhost [v3_req] subjectAltName = @alt_names [alt_names] DNS.1 = *.localhost DNS.2 = localhost IP.1 = 192.168.2.100 * CN (Common Name) 則是憑證名稱,你可以設定任意名稱,設定中文也可以,但請記得檔案要以 UTF-8 編碼存檔,且不能有 BOM 字元 * [alt_names] 區段,則是用來設定 SSL 憑證的域名,建議可以把可能會用區域網路的 IP 地址都加上去。 ### 2.建立 `.key` 及`.crt` `openssl req -x509 -new -nodes -sha256 -utf8 -days 3650 -newkey rsa:2048 -keyout server.key -out server.crt -config ssl.conf` * server 更改為server 的 內網 IP ### 3.將金匙放入所需的資料夾 1. sudo mkdir /etc/nginx/ssl 2. 將`.key` `.crt` 兩個檔案放入上面所創建資料夾 3. 將pem檔生成出來並放入與金鑰檔同樣的資料夾 `sudo openssl dhparam -out /etc/nginx/ssl/dhp-2048.pem 2048` ### 4. 設定 BBB與SSL相關設定 1. Edit the nginx configuration to use SSL. 連結到 https://docs.bigbluebutton.org/2.2/install.html#configure-nginx-to-use-https ,根據最後一段修改`/etc/nginx/sites-available/bigbluebutton` 2. 將sites-available資料夾內的設定檔新增SSL相關資訊 https://docs.bigbluebutton.org/2.2/install.html#configure-freeswitch-for-using-ssl 3. 依照官方說明把設定檔內的非SSL傳輸設定修正 https://docs.bigbluebutton.org/2.2/install.html#configure-bigbluebutton-to-load-session-via-https ## 三、新增管理員帳號 1. `mkdir ~/greenlight` 2. `cd ~/greenlight` 3. `docker exec greenlight-v2 bundle exec rake user:create["name","email","password","admin"] ` * 其中name改為名稱、email改為登入信箱、password改為你的密碼、admin不用動(系統權限組) ## Reference https://blog.miniasp.com/post/2019/02/25/Creating-Self-signed-Certificate-using-OpenSSL https://hackmd.io/@TsunaLu/SkbGScvv8
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up