Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
communication-install-scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruben Rodriguez
communication-install-scripts
Compare revisions
4386a8eb69bcb3b559e9e4ae870a89397cf1a95b to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
ruben/communication-install-scripts
Select target project
No results found
master
Select Git revision
Branches
master
Swap
Target
bf/communication-install-scripts
Select target project
ruben/communication-install-scripts
bf/communication-install-scripts
2 results
4386a8eb69bcb3b559e9e4ae870a89397cf1a95b
Select Git revision
Branches
master
revert-d0afac3a
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (4)
fixes to Canvas script
· c04f36ec
Ruben Rodriguez
authored
4 years ago
c04f36ec
Improvements to canvas script
· 982ae639
Ruben Rodriguez
authored
4 years ago
982ae639
Fix freeswitch issue with demo mode
· da1a038f
Ruben Rodriguez
authored
4 years ago
da1a038f
Fixed certbot command
· f7be84d6
Ruben Rodriguez
authored
4 years ago
f7be84d6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BigBlueButton.sh
+4
-2
4 additions, 2 deletions
BigBlueButton.sh
Canvas.sh
+14
-1
14 additions, 1 deletion
Canvas.sh
with
18 additions
and
3 deletions
BigBlueButton.sh
View file @
f7be84d6
...
...
@@ -23,6 +23,8 @@ HOSTNAME=bbb.foo.bar
# Basic setup
apt-get
install
--no-install-recommends
language-pack-en certbot wget equivs apt-transport-https software-properties-common python3-certbot-nginx apache2-utils
update-locale
LANG
=
en_US.UTF-8
# We don't want to install ttf-mscorefonts, they are not free
cat
<<
EOF
> bbb-fakedepends.control
Section: misc
...
...
@@ -67,7 +69,7 @@ sed 's|.*node main.js|PORT=3000 /usr/bin/node main.js|' -i /usr/share/meteor/bun
###### Configure SSL
certbot
--webroot
-w
/var/www/
bigbluebutton-default
/
-m
sysadmin@
$HOSTNAME
certonly
--agree-tos
-d
$HOSTNAME
-n
certbot
--webroot
-w
/var/www/
html
/
-m
sysadmin@
$HOSTNAME
certonly
--agree-tos
-d
$HOSTNAME
-n
cat
<<
EOF
|sed '/server_name.*
$/
r /dev/stdin' -i /etc/nginx/sites-available/bigbluebutton
...
...
@@ -97,7 +99,7 @@ sed 's/http/https/' -i /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp
sed
's/JoinViaHTML5Client=false/JoinViaHTML5Client=true/'
-i
/usr/share/bbb-web/WEB-INF/classes/bigbluebutton.properties
# Fix integration issue with Canvas
sed
's/
5,6/5,
20/'
-i
/opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml /opt/freeswitch/conf/dialplan/default/bbb_conference.xml
sed
's/
\d{5,6}/\d{5,6}|\\d{
20
}
/'
-i
/opt/freeswitch/conf/dialplan/default/bbb_echo_test.xml /opt/freeswitch/conf/dialplan/default/bbb_conference.xml
bbb-conf
--setip
$HOSTNAME
service nginx restart
...
...
This diff is collapsed.
Click to expand it.
Canvas.sh
View file @
f7be84d6
...
...
@@ -18,6 +18,8 @@
# This script has been tested on Trisquel 9
# References https://github.com/instructure/canvas-lms/wiki/Production-Start
HOSTNAME
=
canvas.foo.bar
# Install basic packages for this script
...
...
@@ -65,12 +67,14 @@ cd /srv/canvas
su canvas
-l
-c
'git clone https://github.com/instructure/canvas-lms.git /srv/canvas'
su canvas
-l
-c
'git -C /srv/canvas checkout stable'
for
config
in
amazon_s3 dynamic_settings database
\
for
config
in
amazon_s3 dynamic_settings database
logging
\
delayed_jobs domain file_store outgoing_mail security external_migration
;
\
do
cp
/srv/canvas/config/
$config
.yml.example /srv/canvas/config/
$config
.yml
;
done
su canvas
-c
"sed 's/your_password/
$DBPASS
/' -i /srv/canvas/config/database.yml"
su canvas
-c
"sed 's/12345/
$(
pwgen 50
-n1
)
/' -i /srv/canvas/config/security.yml"
su canvas
-c
"sed 's/canvas.example.com/
$HOSTNAME
/' -i /srv/canvas/config/domain.yml"
su canvas
-c
"sed '/production:/a
\ \
log_level: info' -i /srv/canvas/config/logging.yml"
gem
install
bundler
-v
1.13.6
npm
install
-g
coffee-script@1.6.2
...
...
@@ -108,6 +112,9 @@ production:
- redis://localhost
EOF
systemctl
enable
redis-server
systemctl start redis-server
cat
<<
EOF
> /etc/apache2/sites-enabled/canvas.conf
#PassengerLogLevel 5
PassengerStartTimeout 300
...
...
@@ -152,3 +159,9 @@ EOF
# Configure your email output by editing /srv/canvas/config/outgoing_mail.yml
service apache2 restart
# Enable background job processing
ln
-s
/srv/canvas/script/canvas_init /etc/init.d/canvas_init
update-rc.d canvas_init defaults
/etc/init.d/canvas_init start
This diff is collapsed.
Click to expand it.